Page 1 of 1

how to use "ImageData"?

Posted: Fri Jul 04, 2008 3:18 pm
by rozek
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

Posted: Fri Jul 04, 2008 3:41 pm
by rozek
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.