Re: [Spam] [flexcoders] ImageSnapshot without scroll bars?

2009-08-20 Thread flexjunker
Hey Nick, yeah ImageSnapShot is a class that basically takes a UI component and 
spits out the bitmapData, which you can encode as a jpg / png. 

http://www.cs.vu.nl/~eliens/im/assets/flex3/langref/mx/graphics/ImageSnapshot.html

I just don't want the 'snap' of a container to have any scroll bars, although 
the container does (and needs at this point in time) to have them. I'm prolly 
just going to go with SWFObject and something like swiffit.

Unless anyone can come up with a solution...



Re: [Spam] Re: [Spam] [flexcoders] ImageSnapshot without scroll bars?

2009-08-20 Thread Nick Middleweek
OK, that's amazing...

Is there not a way to test if the scrollbars are actually visible? Different
from the scrollbar visible policy?...

You could always crop the image I guess? can you do that in Flex/ AS?

Or you could force scrollbars to be visible and then always crop the image
that's produced...



Nick



2009/8/20 flexjunker willtheb...@yahoo.com



 Hey Nick, yeah ImageSnapShot is a class that basically takes a UI component
 and spits out the bitmapData, which you can encode as a jpg / png.


 http://www.cs.vu.nl/~eliens/im/assets/flex3/langref/mx/graphics/ImageSnapshot.htmlhttp://www.cs.vu.nl/%7Eeliens/im/assets/flex3/langref/mx/graphics/ImageSnapshot.html

 I just don't want the 'snap' of a container to have any scroll bars,
 although the container does (and needs at this point in time) to have them.
 I'm prolly just going to go with SWFObject and something like swiffit.

 Unless anyone can come up with a solution...

  



[flexcoders] ImageSnapshot without scroll bars?

2009-08-19 Thread flexjunker
Anyone know of how to avoid the scroll bars in an imagesnapshot of a container?

Thanks.



Re: [flexcoders] ImageSnapshot without scroll bars?

2009-08-19 Thread Fotis Chatzinikos
Never printed anything from flex back you could either:

1) remove scrollbars prior to printing and then put them back (horizontal
and vertical scroll policies set to off)
2) if this makes the application 'jumpy' due to bars disappearing and then
reappearing, you could possibly try and copy the contents of the container
to an offscreen copy of it with scroll policies set to off and print this
(no idea if you can print offscreen containers, cannot imagine why not but
then again...)

Please let us know if any of these works for future reference,

cheers,
Fotis

On Wed, Aug 19, 2009 at 9:06 PM, flexjunker willtheb...@yahoo.com wrote:



 Anyone know of how to avoid the scroll bars in an imagesnapshot of a
 container?

 Thanks.

  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


Re: [Spam] [flexcoders] ImageSnapshot without scroll bars?

2009-08-19 Thread Nick Middleweek
Sorry for the newbie question but what do you mean image snapshot?... Do you
mean take a screen shot of a certain area in flex and save it as a JPEG or
something?


Cheers,
Nick




2009/8/19 flexjunker willtheb...@yahoo.com



 Anyone know of how to avoid the scroll bars in an imagesnapshot of a
 container?

 Thanks.