[flexcoders] Re: Canvas zoom / preview / Navigator

2007-01-02 Thread ecpmaz
I did what I said before to accomplish what I wanted : - BitmapData.draw to get a bitmap containing my Canvas snapshot - UIComponent.scaleX/Y to zoom... I commented my sources if anyone is interested in using it. eaurizon.org/labs_maz/AdvancedCanvas/src.zip The package contains : - AdvancedCanvas

Re: [flexcoders] Re: Canvas zoom / preview / Navigator

2006-12-21 Thread Doug McCune
Regarding generating the snapshot or thumbnail drawing... Sorry if this isn't incredibly helpful, but I'd start with understanding BitmapData stuff. To do the snapshot I'm guessing you're going to want to capture the BitmapData of the Canvas (and that will include all the components it

[flexcoders] Re: Canvas zoom / preview / Navigator

2006-12-21 Thread ecpmaz
Yes that is exactly what I needed ! I will come back to you when I will have solved that clipping issue. For the zoom feature, I just found a property of the Canvas : scaleX, scaleY... looks pretty much what I was looking for ! Mathieu LEMAIRE