Home » U++ Library support » Look and Chameleon Technology » Chameleon again
Re: Chameleon again [message #24473 is a reply to message #24454] |
Mon, 18 January 2010 18:59 |
andrei_natanael
Messages: 262 Registered: January 2009
|
Experienced Member |
|
|
cbpporter wrote on Mon, 18 January 2010 10:34 |
The two red spots are the hot spots. This divides the image into 9 areas. This image will be applied to all sizes of Button. The hot spots describe which areas will be resized. In this image, the cyan areas will remain constant size, the orange areas will be resized in one dimension, and the gray/purple one will be resized in both dimensions. Resizing algorithm is smooth and uses a filter which is appropriate for making good looking pictures while resizing. You will never get a blocky image, but sometimes you get a blurry one.
|
In that case with both hotspots having distinct locations and x,y != 0 seems logic how each part created by hotspot position is used to compose the button, but what about the following cases?
Here hotspots split image in 2, 3 or 4 parts not 9 as in your case.
I think when hotspots coincide in x,y=0,0 the image is scaled equally in both directions (it doesn't appear in image), but in other cases which part is used for which button part?
-
Attachment: hotspots.png
(Size: 2.46KB, Downloaded 1174 times)
|
|
|
Goto Forum:
Current Time: Sun May 05 15:06:47 CEST 2024
Total time taken to generate the page: 0.02765 seconds
|