View Full Version : Nonrectangular image clipping (masks)
chipWrangler
08-28-2006, 05:31 AM
Hi,
is there any way to crop a resource to an arbitrary shape? The effect I want would be to load a resource into a drawview, draw a closed shape in the view, and clip the resource to that shape. In Flash I'd use a mask for this.
Thanks!
Rafael Van Daele-Hunt
lsarna
02-27-2007, 12:42 PM
try using the non documented function clip() for draw view, it works for us in 3.4x
http://www.openlaszlo.org/jira/browse/LPP-2169
has info and example
cyberlogan73
07-01-2007, 06:03 AM
I am trying to achieve the same type of effect as in this thread and the example does not work properly in 4.0 only in 3.4. Is this a bug in 4.0 or do I have to do something different?
This is the message I receive in the debug console.
lzx> Debug.inspect(«debugger/LzMessage.lzs#388/17#2| WARNING...»)
«debugger/LzMessage.lzs#388/17#2#1| WARNING: extensions/drawview.lzx:728: reference to undefined property \'__LZmaskClip\'» {
file: 'extensions/drawview.lzx'
line: 728
message: "reference to undefined property '__LZmaskClip'"
}«debugger/LzMessage.lzs#388/17#2#1| WARNING: extensions/drawview.lzx:728: reference to undefined property \'__LZmaskClip\'»
lzx>
Thanks In Advance!
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.