gflAddText

GFL SDK

gflAddText

The gflAddText function adds a text on a GFL_BITMAP.

GFL_ERROR gflAddText(
  GFL_BITMAP * bitmap,  
  const char * text,  
  const char * font_name,  
  GFL_INT32  x,  
  GFL_INT32  y,  
  GFL_INT32  font_size,  
  GFL_INT32  orientation,  
  GFL_BOOL  italic,  
  GFL_BOOL  bold,  
  GFL_BOOL  strike_out,  
  GFL_BOOL  underline,  
  GFL_BOOL  antialias,  
  const GFL_COLOR * color
);

Parameters

    bitmap
    Pointer to a GFL_BITMAP structure.
    text
    Pointer to a null-terminated string that contains the text to add.
    font_name
    Pointer to a null-terminated string that contains the name of the font to use.
    x
    X position.
    y
    Y position.
    font_size
    Height of the font.
    orientation
    Orientation of the text (degrees).
    italic
    Specifies a italic font.
    bold
    Specifies a bold font.
    strike_out
    Specifies a strikeout font.
    underline
    Specifies a underline font.
    antialias
    Font is antialiased.
    color
    Pointer to a GFL_COLOR structure for the text color.

Return value

    The function returns GFL_NO_ERROR if it is successful or a value of GFL_ERROR.

See also