how to use "ImageData"?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rozek
Posts: 151
Joined: Mon Jun 19, 2006 2:29 pm
Contact:

how to use "ImageData"?

Post by rozek » Fri Jul 04, 2008 3:18 pm

Hello!

I'm currently trying to create an image by script, but - you might guess it already - it does not work...

The situation:
- I have a hidden (referenced) image control "A" which displays properly (when not hidden - for testing purposes)
- and another (visible) image control "B" of the same size as "A"
- when I "set the ImageData of control "B" to the ImageData of control "A"" the result is a black display

Does anybody have any idea want goes wrong in this simple situation?

[edit] I also already "played" with "alwaysBuffer" - unfortunately without any success
Kind regards,

Andreas Rozek

rozek
Posts: 151
Joined: Mon Jun 19, 2006 2:29 pm
Contact:

Post by rozek » Fri Jul 04, 2008 3:41 pm

Ok,

I got it: setting "alwaysBuffer" for a referenced image in the IDE seems to delete the image buffer (while the name of the referenced file is kept). after explicitly reloading the image files I was able to work with ImageData as foreseen.
Kind regards,

Andreas Rozek

Post Reply