Back to Devexpress

FSmoothlyStretchImages Variable

vcl-dxpscore-b545305b.md

latest1.9 KB
Original Source

FSmoothlyStretchImages Variable

Enables anti-aliasing for resized images in reports.

Declaration

delphi
var FSmoothlyStretchImages: Boolean = True;

Variable Value

Type
Boolean

Remarks

Resizing images in reports may produce distortion artifacts, known as aliasing. To improve the quality of resized images, you can enable anti-aliasing for them by setting the FSmoothlyStretchImages variable to True.

The table below shows how variable values affect the appearance of images.

ValueDescriptionSample ImageMagnified Sample Image
TrueImages are resized with anti-aliasing.
FalseImages are resized without anti-aliasing.

If enabled, anti-aliasing is applied to all images that are drawn using the ExpressPrinting System renderer’s methods (TdxPSReportRenderer.DrawGraphic and TdxPSReportRenderer.DrawGraphicEx) or a report link’s DrawGraphic method. So, to custom paint images with anti-aliasing, use any of the above methods in your OnCustomDraw~ event handlers.

Note

Since the methods mentioned above are not used when painting metafile images and rich edit controls, anti-aliasing cannot be applied to them.

The default value of the FSmoothlyStretchImages variable is True.

See Also

dxPSCore Unit