Jacque,
Thanks for the example explanations. I wan’t quite understanding the usefulness.
—
Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web       http://elementarysoftware.com/
email     [email protected]
booth    1-800-615-0867
------------------------------------------------------

> On Feb 13, 2019, at 8:01 PM, J. Landman Gay via use-livecode 
> <[email protected]> wrote:
> 
> The centerRect allows you to stretch a portion of an image without affecting 
> the areas outside of the rectangle. Imagine you have an image with rounded 
> corners and you want to use it as a button icon. You can specify an area in 
> the center of the image that can stretch as wide as you need the button to be 
> but the corners won't be affected and will keep their original radius.
> 
> Or imagine a vertical image like a paper bookmark with a design on top and a 
> cutout shape on the bottom. You could stretch the center area to make it 
> taller without distorting the top design or the cutout at the bottom.
> --
> Jacqueline Landman Gay | [email protected]
> HyperActive Software | http://www.hyperactivesw.com
> On February 13, 2019 7:49:01 PM Sannyasin Brahmanathaswami via use-livecode 
> <[email protected]> wrote:
> 
>> See my other message to the list of UI Handlers…
>> 
>> For my library, I was looking for clues to "centering "  and came across
>> 
>> centerRect
>> 
>> set the centerRect[angle] of image to rectangle
>> set the centerRect of image "buttonImage" to 20,20,45,200
>> 
>> Dictionary is obscure,
>> 
>> 1. What does "stretching" mean
>>             in the context of " Use to centerRect property to specifies a 
>> region of              pixels that should be stretched when the image is 
>> stretched." Something              that happens is development with the 
>> Selection Tool on?
>> 
>> 2.  centerRect[angle]
>>          Implies an array. But there is no reference to an array in the 
>> dictionary?
>> 
>> BR
>> 
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> [email protected]
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to