IPrintOemUni::TextOutAsBitmap method allows a rendering plug-in to create a bitmap image of a text string, in case a downloadable font is not available.
HRESULT TextOutAsBitmap( SURFOBJ *pso, STROBJ *pstro, FONTOBJ *pfo, CLIPOBJ *pco, RECTL *prclExtra, RECTL *prclOpaque, BRUSHOBJ *pboFore, BRUSHOBJ *pboOpaque, POINTL *pptlOrg, MIX mix );
Pointer to a SURFOBJ structure that describes the surface on which to write.
Pointer to a STROBJ structure that defines the glyphs to be rendered and the positions in which to place them.
Pointer to a FONTOBJ structure from which to retrieve information about the font and its glyphs.
Pointer to a CLIPOBJ structure that defines the clip region through which all rendering must be done. The driver cannot affect any pixels outside the clip region.
Pointer to a RECTL structure. GDI always sets this parameter to NULL in calls to this function. It should be ignored by the driver.
Pointer to a RECTL structure that represents a single opaque rectangle. This rectangle is bottom-right exclusive. Pixels within this rectangle (those that are not foreground and not clipped) are to be rendered with the opaque brush. This rectangle always bounds the text to be drawn. If this parameter is NULL, no opaque pixels are to be rendered.
Pointer to a BRUSHOBJ structure that represents the brush object to be used for the foreground pixels. This brush will always be a solid color brush.
Pointer to a BRUSHOBJ structure that represents the opaque pixels. Both the foreground and background mix modes for this brush are assumed to be R2_COPYPEN. Unless the driver sets the GCAPS_ARBRUSHOPAQUE capabilities bit in the flGraphicsCaps member of the DEVINFO structure, it will always be called with a solid color brush.
Pointer to a POINTL structure that defines the brush origin for both brushes.
The foreground and background raster operations (mix modes) for pboFore.
The method must return one of the following values.
||The operation succeeded.|
||The operation failed.|
||The method is not implemented.|
IPrintOemUni::TextOutAsBitmap method is called from Unidrv's IPrintOemDriverUni::DrvUniTextOut method, if that method cannot create the text string using downloadable fonts, either because the font is not available or is rotated.
IPrintOemUni::TextOutAsBitmap should create a bitmap image of the text and send it to the print device.
IPrintOemUni::TextOutAsBitmap method is optional. If a rendering plug-in implements this method, the plug-in's IPrintOemUni::GetImplementedMethod method must return S_OK when it receives "TextOutAsBitmap" as input.
|Header||prcomoem.h (include Prcomoem.h)|