TdxBackground.PaintEx(TdxPSReportRenderCustomCanvas,TRect,Integer,Integer) Method
Paints a report’s background.
Declaration
procedure PaintEx(ACanvas: TdxPSReportRenderCustomCanvas; const R: TRect; APixelsNumerator: Integer; APixelsDenominator: Integer); virtual;
Parameters
Name | Type |
---|---|
ACanvas | TdxPSReportRenderCustomCanvas |
R | TRect |
APixelsNumerator | Integer |
APixelsDenominator | Integer |
Remarks
The PaintEx method is used to paint the background of a report. This method operates with logical size units, as opposed to the Paint method, which operates with pixels.
The ACanvas parameter specifies the drawing surface.
The Rect parameter specifies the rectangle where to draw the background.
The PixelsNumerator and PixelsDenominator parameters are used to convert object size in pixels to logical units. In order to calculate width/height of an object in logical units, you should multiply this width/height in pixels by the PixelsNumerator parameter and divide the result by the PixelsDenominator parameter.
See Also