Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxBackground.PaintEx(TdxPSReportRenderCustomCanvas,TRect,Integer,Integer) Method

Paints a report’s background.

#Declaration

Delphi
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