|
Add Overlay Text.
void AddText( string strText, int iX, int iY, int strFontName, int iFontSize, int iFgRed, int iFgGreen, int iFgBlue, int iBgRed, int iBgGreen, int iBgBlue, bool bHasBackground, int iOpacityBg, int iRoundBg ) void AddText( string strText, int iX, int iY, int strFontName, int iFontSize, int iFgRed, int iFgGreen, int iFgBlue, int iBgRed, int iBgGreen, int iBgBlue ) void AddText( string strText, int iX, int iY, int strFontName, int iFontSize, int iFgRed, int iFgGreen, int iFgBlue, int iBgRed, int iBgGreen, int iBgBlue, bool bHasBackground, int iOpacityBg, int iRoundBg, bool bBold, bool bItalic, bool bUnderline )
|
Parameter strText the string of the text.
iX Specifies the logical x-coordinate of the starting point of the text.
iY Specifies the logical y-coordinate of the starting point of the text.
strFontName Specifies the font name.
iFontSize Specifies the font size.
iFgRed Specifies the color value with red component of foreground color (0-255).
iFgGreen Specifies the color value with green component of foreground color (0-255).
iFgBlue Specifies the color value with blue component of foreground color (0-255).
iBgRed Specifies the color value with red component of background color (0-255).
iBgGreen Specifies the color value with green component of background color (0-255).
iBgBlue Specifies the color value with blue component of background color (0-255).
bHasBackground enable or disable the background color of the text.
iOpacityBg Specifies the opacity value for background. from 0.0-1.0 . Default is 0. (opaque)
iRoundBg Specifies the value for round frame around text. from 0 -50. 0 is no round frame.
bBold Enable or disable bold the font.
bItalic Enable or disable italic the font.
bUnderline Enable or disable underline the font.
Return Value No Return value
Example
|
C# Syntax using ImageConverterVsWrapper;
ImageConverterVs obj = new ImageConverterVs(); obj.AddText("This is sample text 1", 100, 100, "Arial", 22, 255, 0, 0, 255, 0, 0, false, 0, 0); obj.AddText("This is sample text 2", 600, 150, "Times New Roman", 28, 0, 100, 0, 255, 0, 0, true, 0, 0); obj.AddText("This is sample text 3", 100, 200, "Arial", 28, 255, 255, 255, 0, 0, 255, true, 0.0, 20); obj.AddText("This is sample text 4", 100, 250, "Arial", 22, 255, 255, 0, 255, 0, 255); obj.AddText("This is sample text 5", 100, 300, "Arial", 22, 0, 128, 0, 181, 230, 29, true, 0, 0, true, true, true); bool bResult = obj.ConvertToImage(strinputpath1, stroutpath);
|
|
|