PutLabel
Write a label (text on unified background) into an image.
Syntax
Definition:
HRESULT PutLabel(
HRESULT hrPrev,
PCCH sText,
ITcVnImage* ipDestImage,
ULONG nX,
ULONG nY,
double fFontScale,
ULONG nThickness = 1,
ETcVnFontType eFontType = FT_HERSHEY_SIMPLEX,
TcVnVector4_LREAL& aFontColor = {0, 0, 0, 0},
TcVnVector4_LREAL& aBackgroundColor = {255, 255, 255, 255},
ETcVnLineType eLineType = LT_4_CONNECTED
)Parameters
|
Name |
Type |
Default |
Description |
|---|---|---|---|
|
hrPrev |
|
HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.) | |
|
sText |
PCCH |
|
Text |
|
ipDestImage |
|
Destination image | |
|
nX |
ULONG |
|
x coordinate (bottom left) |
|
nY |
ULONG |
|
y coordinate (bottom left) |
|
fFontScale |
double |
|
Scaling factor |
|
nThickness |
ULONG |
1 |
Line thickness |
|
eFontType |
FT_HERSHEY_SIMPLEX |
Font type | |
|
aFontColor |
{0, 0, 0, 0} |
Font color | |
|
aBackgroundColor |
{255, 255, 255, 255} |
Background color | |
|
eLineType |
LT_4_CONNECTED |
Line type |
Required License
TC3 Vision Base
Return value