MImgPutText
bOk = MImgPutText( hImageDest, nLeft, nTop, sText, sFontName, nFontSize, nFontEnh, nColor )
Puts a text into an image.
Parameters
hImage
Number: Handle of the destination image
nLeft, nTop
Number: Top left position of the text to put
sText
String: The text
sFontName
String: Font name
nFontSize
Number: Font size
nFontEnh
Number: Font enhancements. Any combination of the FONT_Enh constants and/or MIMG_FONT_ENH_CLEARTYPE.
nColor
Number: Text color
Return
Boolean: TRUE if successful or FALSE if an error occurs
Remarks
If the destination image has a palette ( BPP < 24 ) and the text color isn't in the palette, the nearest color from the palette is used.
The opacity values of the destination image pixel's remain unchanged.
Example
Call MImgPutText( hImageDest, 0, 0, "This is a text", "Arial", 8, FONT_EnhBold | FONT_EnhUnderline, COLOR_Blue )
Destination |
Destination after MImgPutText |
See also
MImgPutImage
MImgPutTextAligned
Created with the Personal Edition of HelpNDoc: Single source CHM, PDF, DOC and HTML Help creation