WPTools Manual



Search


(press enter to search)

Class TWPPaintEngine

Hierarchy

System.TObject | System.Classes.TPersistent | System.Classes.TComponent | TWPPaintEngine

Subclasses

WPCTRMemo.TWPPaintEngineAndData

Description

This component paints the text in the attached text object to a given Canvas using its method . // Paint at 100% procedure TForm1.PaintBox1Paint(Sender: TObject); begin WPPaintEngine1.Draw(PaintBox1.Canvas, 10, 10, PaintBox1.Height, WPScreenPixelsPerInch, WPScreenPixelsPerInch, 0 ); end;
// Paint at 50% procedure TForm1.PaintBox1Paint(Sender: TObject); begin WPPaintEngine1.Draw(PaintBox1.Canvas, 10, 10, PaintBox1.Height, WPScreenPixelsPerInch div 2, WPScreenPixelsPerInch div 2, 0 ); end;
Note: In case you need to use one RTFData object with one TWPPaintEngine you can create one instance of the class. To edit the text You can assign the RTFData to the property .

Properties

Property AsAnsiString : AnsiString

Property DefaultFormat : string

Property Memo : TWPRTFEnginePaint

Property Name : TComponentName

Property PageSizes : TWPPaintEnginePaintSizes

Property RTFData : TWPRTFDataCollection

Methods

Used or referenced by

-Property TWPRTFBalloonHint.Painter : TWPPaintEngine