Need some more info. What sort of cast member is it? Text, bitmap, etc. And what do you need to do with it externally? I mean, do you need to save an image as a jpg so it can be opened in other programs? Or do you just need to save something for the future when you will be re-importing it into Director. Also, which version of Director are you using and what is your target platform (Win, Mac, Shockwave)
Thanks for replying!
The cast member is a bitmap.
Once saved, I only need to view it.
It doesn't have to be a .jpg.
I won't be reopening it in the projector.
I am using 8.5.
The platform is Windows only.
It will not be used on the Internet.
To elaborate, this is how you would call the Xtra in your code:
-- create the instance of the xtra
objImg = xtra("ImgXtra").new()
-- get the member's image we want to save
imgToSave = member("foobar").image
-- set the path and filename for the bitmap
strFileName = the moviePath & "foobar.jpg"
-- call the ix_saveImage method, with required parameters
success = objImg.ix_saveImage(["image": imgToSave, "filename": strFileName])
-- returns 1 if successful, 0 if not
if success then
-- something here
-- something else here
-- clear the xtra object instance
objImg = VOID
The other optional parameters such as format and flags can be set, if you like, and the info can be found in the imgXtra.txt document.
Thanks for replying to everyone!
I purchased DirectImage xtra, and it's working well.