Copies the image from a bitmap cast member into Rosetta's image buffer
Usage:
imgFromMember (object me, object memberRef, integer includeAlpha )
Parameters:
memberRef (cast member reference) - a member reference to a bitmap cast member
includeAlpha ( boolean ) - include the alpha channel data
Returns:
(integer) - The success code
Example:
-- exports every bitmap in the internal cast out to file
xtRose = xtra("Rosetta").new( )
nCastMemCount = the number of members of castlib 1
Repeat with i = 1 to nCastMemCount
If ( member(i,1).type = #bitmap ) Then
-- save all bitmaps out to disk
xtRose.imgFromMember( member( i, 1 ), 0 )
xtRose.imgSave( the moviepath & "castMem" & i & ".png" )
End If
End Repeat
Notes:
Director likes to keep alpha data when you do things such as (the stage).image, if you wish to discard that alpha information, pass in false or 0 for the includeAlpha parameter.
This function is not supported in Authorware.