Snapshot command and non-rect polygon selections?
scott at tactilemedia.com
Wed Jun 29 16:23:35 EDT 2011
John, I don't think you can automatically do what you're asking -- a
snapshot always "grabs" from a rectangle.
You either need to do as Andre suggests, or you have to define the L region
yourself, and mask it out of the snapshot image. You can do this using a
combination of ink effects, or by artificially applying alpha transparency
to the snapshot. There are probably a few other ways as well.
Here's an example of masking using ink effects:
go url "http://tactilemedia.com/site_files/downloads/masking_options.rev"
Here's an example of applying alpha transparency to one image using the
imageData of another image:
go url "http://tactilemedia.com/site_files/downloads/get_alpha.rev"
Hope this helps.
Tactile Media, UX Design
Recently, John Patten wrote:
> Hi Andre...
> The issue is the "L" shape is inside a larger image. So essentially I
> only want a part of the image and the part I want is in the shape of
> the letter L.
> John Patten
> On Jun 29, 2011, at 12:24 PM, Andre Garzia wrote:
>> export snapshot from graphic "L" to file "l.png" as PNG
>> will do as you want. No need for coords, just pass the object
>> On Wed, Jun 29, 2011 at 3:48 PM, John Patten <johnpatten at mac.com>
>>> Hi All!
>>> Is it possible to to use non rectangular shapes when creating
>>> What if I had capture shape like the capital letter "L" ... could I
>>> create a snapshot out of the outline of the letter L? (That's just an
>>> As I understand it, snapshot only works with four coordinates, the
>>> of a rect... or can they work with any group of points on a polygon?
>>> Thanks in advance!
>>> John Patten
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>> http://www.andregarzia.com All We Do Is Code.
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
More information about the Use-livecode