ImageEn, unit iexPdfiumCore

TPdfObject.FillColor

TPdfObject.FillColor


Declaration

property FillColor: TRGBA;


Description

Specifies the fill color for a path that is closed (when ObjectType is ptPath) and text.

Note:
 Ensure you check whether the object is filled or not
 An object is closed if its path terminates with a Closing Break ($FFFEE)
 You must call ImageEnView1.Invalidate() after setting FillColor

Read/write


Example

// Fill the current path with Blue
ImageEnView1.PdfViewer.Objects[idx].FillColor := TColor2TRGBA( clBlue, 255 );
ImageEnView1.Invalidate();

// Remove the fill from the current path
ImageEnView1.PdfViewer.Objects[idx].FillColor := TColor2TRGBA( clWhite, 0 );
ImageEnView1.Invalidate();

// Which is the same as...
ImageEnView1.PdfViewer.Objects[idx].PathFillMode := pfNone;
ImageEnView1.Invalidate();


See Also

 GetPath
 GetTextFont
 LineCap
 LineJoin
 PathFillMode
 PathStrokeWidth
 StrokeColor
 StrokeWidth
 TColor2TRGBA