`
![]() |
![]() |
![]() |
function DrawText(image: TImage32; x, y: double; const text: UnicodeString; glyphCache: TGlyphCache; textColor: TColor32 = clBlack32): double; overload;
function DrawText(image: TImage32; x, y: double; const text: UnicodeString; glyphCache: TGlyphCache; renderer: TCustomRenderer): double; overload;
function DrawText(image: TImage32; const rect: TRect; const text: UnicodeString; textAlign: TTextAlign; textAlignV: TTextVAlign; glyphCache: TGlyphCache; textColor: TColor32 = clBlack32): TPointD; overload;
uses Image32, Image32_ttf; ... var img: TImage32; arialFontReader: TFontReader; arialCache: TGlyphCache; nextX: double; begin img := TImage32.create(200, 50); arialFontReader := TFontReader.Create; arialFontReader.LoadFromFile('c:\windows\fonts\arial.ttf'); arialCache := TGlyphCache.Create(arialFontReader, 12); nextX := DrawText(img, 10,10, 'Image32!', arialCache); arialCache.Free; arialFontReader.Free; img.Free; end;
TCustomRenderer, TGlyphCache, TTextAlign, TTextVAlign
Copyright ©2019 Angus Johnson - Image32 ver. 1.55 - Documentation last updated on 8-November-2020