making a graphic the shape of a bitmap

Jim Hurley jhurley0305 at sbcglobal.net
Sun Jul 29 12:40:39 EDT 2012


> 
> Message: 14
> Date: Sat, 28 Jul 2012 17:31:12 -0400
> From: Colin Holgate <coiin at verizon.net>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Subject: making a graphic the shape of a bitmap
> Message-ID: <2C60FC45-5CD4-4AC1-B12B-C802EB95EBE4 at verizon.net>
> Content-Type: text/plain; charset=us-ascii
> 
> How can you make a graphic be the exact shape of an irregular shaped image? For example, say you had an alpha transparent background image of a snake, and you wanted a graphic control that was the same shape as the outline of the snake, how could that be done?
> 
> You could oh-so-carefully draw the graphic with the freehand tool, but it's extremely unlikely [likely] you would make a mistake. There doesn't seem to be a way to edit a graphic's shape, and there isn't any import vector as control, or a way to launch an editor for graphics.
> 

Colin,

When you say, "there doesn't seem to be a way to edit a graphic's shape" how do you mean? There is "Reshape graphic" under the Object menu for manual editing. Or did you mean something more sophisticated? 

Jim Hurley








More information about the use-livecode mailing list