IID_IMoaDrAlphaDataPIMoaDrAlphaDataIMoaUnknownThis interface is obsolete has not been supported since Director 6.
IMoaDrRTAccess
interface provides access to the RTF rendering engine built into the Director authoring
environment, while this interface provides a way to store rendering information about
the text and render the text in a standard Moa graphics context.
Instances of this interface are created by calling
IMoaDrRTAccess::GenerateAlphaData(),
passing in data representing the text and any formatting within it.
Asset Xtras can call the Render() method from their
IMoaMmXSpriteActor::Image() method
to present the results. They can call the streaming methods of this interface,
StreamOut(), StreamIn(), and
GetStreamOutSize() to manage storage and retrieval
of the information.
- GetDimensions(PIMoaDrAlphaData This,
- MoaLong FAR * pWidth,
MoaLong FAR * pHeight))
ThisIMoaDrAlphaData interfacepWidthpHeight)MoaErrorRender()
to determine the size of the text to be rendered.
- GetStreamOutSize(PIMoaDrAlphaData This,
- MoaUlong FAR * pSizeBytes))
ThisIMoaDrAlphaData interfacepSizeBytes)MoaErrorIMoaDrAlphaData object, call this
method from your IMoaMmXAsset::GetStreamOutMediaSize()
or IMoaMmXAsset::GetStreamOutPropsSize()
methods to determine the size of the data to be streamed.
- Render(PIMoaDrAlphaData This,
- PIMoaMmGC pGC,
PMoaMmRGBTriple pColor,
PMoaRect pWhere))
ThisIMoaDrAlphaData interfacepGCpColorpWhere)MoaErrorIMoaDrAlphaData
object into the graphics context of pGC. The graphics context must be
a DIB on Windows, and can be any context supported on the Macintosh. The pWhere
parameter specifies the position and size of the text to render, in pixels. To determine the
size of this rectangle for displaying the full text, call
GetDimensions(). Note
that the text will always be rendered in the color specified by pColor,
regardless of any color specified in the PMoaDrCharStyleData used to initially
create the IMoaDrAlphaData object from the IMoaDrRTAccess interface.
- StreamIn(PIMoaDrAlphaData This,
- PIMoaStream pInStream))
ThisIMoaDrAlphaData interfacepInStream)MoaErrorIMoaDrAlphaData object, call this
method from your IMoaMmXAsset::StreamInMedia()
or IMoaMmXAsset::StreamInProps()
methods to retrieve the object.
- StreamOut(PIMoaDrAlphaData This,
- PIMoaStream pOutStream))
ThisIMoaDrAlphaData interfacepOutStream)MoaErrorIMoaDrAlphaData object, call this
method from your IMoaMmXAsset::StreamOutMedia()
or IMoaMmXAsset::StreamOutProps()
methods to save the object.