|
GetFontDrawMode | |
DrawMode = GetFontDrawMode(FontIndex) | |
Parameters: FontIndex = The index of the font you wish to set the drawmode of |
|
Returns: DrawMode = The rendering method the font use should use with this font. |
|
The GetFontDrawMode function gets the fonts current drawmode. [ Draw Modes ] Mode 0) = Solid TINT (default) This is the default font drawmode, the font colour is tinted with the current INK colour in ARGB forma). The pixels will overwrite the destination pixels. No alpha blending (with the backdrop) is performed. So this method is the fastest option. Mode 1) = Alpha Blend to Buffer In this mode the font's pixel colours are first tinted with Ink colour (colour in ARGB format), then the resulting pixel is then Alpha blended with the pixel that it was going to overwrite. This mode is best used when drawing to FX or AFX formatted surfaces. Mode 2) =Alpha Blend with colour In this mode the font's pixel colours are first tinted with Ink colour (colour in ARGB format), then the resulting pixel is then Alpha blended with fixed blend colour. The resulting colour is then written to the destination buffer, so this method will overwrite than destination colour. Use FontBlendColour to set the blend colour. FACTS: * Not all font types can react to DrawMode changes. At the time of writing, only CRF formatted fonts can. |
|
Example Source: Download This Example
|
Related Info: | FontBlendColour | FontDrawMode | GetFontHeight | GetFontMaskColour | GetFontName$ | GetFontStatus | GetFontStyle | GetFontType | GetFontWidth | LoadFont | MakeBitmapFont : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |