Load External Image Data Not Working
Posted: Thu Mar 07, 2013 9:47 pm
Hey All,
I seem to be having an issue with loading external image data and then setting that data to an image object. Here is what I am trying to do,
// Load Image Data Script (this seems to work fine and has the image data stored in the variable)
put URL("binfile:"&tAppPath & "ImageFile.png" ) into tImgData
// Code to display the image data (This creates an image but image does not show)
create invisible image
put the long id of the last image into tID
set the imageData of tID to tImgData
set the width of tID to the cScaledWidth of tID
set the height of tID to the cScaledHeight of tID
set the loc of tID to the cScaledLoc of tID
set the visible of tID to true
It may seem that I am doing something incorrect here and was hoping someone can point me into the right direction.
I seem to be having an issue with loading external image data and then setting that data to an image object. Here is what I am trying to do,
// Load Image Data Script (this seems to work fine and has the image data stored in the variable)
put URL("binfile:"&tAppPath & "ImageFile.png" ) into tImgData
// Code to display the image data (This creates an image but image does not show)
create invisible image
put the long id of the last image into tID
set the imageData of tID to tImgData
set the width of tID to the cScaledWidth of tID
set the height of tID to the cScaledHeight of tID
set the loc of tID to the cScaledLoc of tID
set the visible of tID to true
It may seem that I am doing something incorrect here and was hoping someone can point me into the right direction.