snapshot and imageData...
jbv.silences at club-internet.fr
Sun Jun 4 08:06:33 CDT 2006
My original goal was to get the imagedata of a snapshot as fast
I first tried with "import snapshot" but realized that it didn't
produce any valid imageData.
Then I thought that may be creating a 2nd image and putting
the image content of the snapshot into the 2nd image would
create a valid imagedata... But it doesn't... unless you first
create a tRect variable for the rect of the snapshot...
And finally, I use JPEG because I don't need any transparency,
although I just realized that PNG versions of screenshots have
a smaller size than JPEGs, but the process is also somewhat
longer, and I need to do it as fast as possible...
BTW, could someone explain why the tRect variable needs to
be created before executing "import snapshot" in order to get a
valid imagedata ?
I'm probably dumb, but I really don't get it...
> Hi JB,
> Why did you originally want to create two images? I had the
> impression that your goal was to have two image objects. Also, why do
> you use JPEG instead of PNG?
> Consultancy and Software Engineering
> Salery is the easiest way to get your own web store on-line: http://
> Op 4-jun-2006, om 12:07 heeft jbv het volgende geschreven:
> > Chipp,
> > Thanks for the tip.
> > For those interested, I've found a (slightly) different
> > but (slightly) faster way to do this :
> > on mouseUp
> > put the screenrect into tRect
> > export snapshot from rect tRect to var as JPEG
> > create img
> > put var into img 1
> > end mouseUp
> > the difference is probably because only 1 image
> > object is created...
> > JB
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
Faith is a central nervous system disease, like Alzheimer or multiple sclerosis.
More information about the use-livecode