Skip to main content

FSmoothlyStretchImages Variable

Enables anti-aliasing for resized images in reports.

Declaration

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.

Value Description Sample Image Magnified Sample Image
True Images are resized with anti-aliasing.
False Images 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