IID_IMoaDrAlphaData
PIMoaDrAlphaData
IMoaUnknown
This 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))
This
IMoaDrAlphaData
interfacepWidth
pHeight)
MoaError
Render()
to determine the size of the text to be rendered.
- GetStreamOutSize(PIMoaDrAlphaData This,
- MoaUlong FAR * pSizeBytes))
This
IMoaDrAlphaData
interfacepSizeBytes)
MoaError
IMoaDrAlphaData
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))
This
IMoaDrAlphaData
interfacepGC
pColor
pWhere)
MoaError
IMoaDrAlphaData
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))
This
IMoaDrAlphaData
interfacepInStream)
MoaError
IMoaDrAlphaData
object, call this
method from your IMoaMmXAsset::StreamInMedia()
or IMoaMmXAsset::StreamInProps()
methods to retrieve the object.
- StreamOut(PIMoaDrAlphaData This,
- PIMoaStream pOutStream))
This
IMoaDrAlphaData
interfacepOutStream)
MoaError
IMoaDrAlphaData
object, call this
method from your IMoaMmXAsset::StreamOutMedia()
or IMoaMmXAsset::StreamOutProps()
methods to save the object.