INTERACT FORUM
Windows => Third Party Plug-ins, Programs, and Skins => Topic started by: zxsix on September 24, 2010, 01:17:41 am
-
I wanted to add a text logo to a skin I'm working on.
I added text to both the mainframe_topborder.png and mainframe_bottomborder.png
The problem is, as the MC window is resized, those images get stretched and the text gets blurry.
Would be the same if you used a perfect circle logo, it wouldn't stay round when you resize the window.
Is there a trick to keep the image proportional?
-
try editing the margin values for top and bottom images in the skin xml. there are four values for the margins, and from left to right, each value refers to the margin for: Left, Top, Right, Bottom.
the theory goes something along the lines of, if your image is in the left corner, and is 200 pixels wide, setting the left margin value to, say, 205, tells the skinning engine to draw those 200 pixels as-is, and stretch the rest as required.
The man from ocuk has my PC at the moment, so I can't give a more concise answer. Sorry.
If your image is in the center, you'd need to use matrix drawing to tell mc to stretch the ends but not the middle...
http://wiki.jriver.com/index.php/Matrix_Drawing
-marko
-
This tip got me where I needed to be. Thanks.