IGxGraphics.CompositingQuality

Syntax

CompositingQuality: GxCompositingQuality;

Description

The CompositingQuality property determines the quality of image rendering.

Example

Executing the example requires a form with the Button1 button and the ImageBox component named ImageBox1. The file system should contain the C:\Map.bmp image.

Add a link to the Drawing system assembly.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Image: IGxImage;
    Graphics: IGxGraphics;
Begin
    Image := GxBitmap.FromFile("C:\Map.bmp");
    Graphics := GxGraphicsClass.FromImage(Image);
    Graphics.InterpolationMode := GxInterpolationMode.Bilinear;
    Graphics.CompositingQuality := GxCompositingQuality.HighQuality;
    ImageBox1.Image := Image;
End Sub Button1OnClick;

On clicking the button the image with the specified rendering quality and interpolation mode from the C:Map.bmp file is loaded to the ImageBox component.

See also:

IGxGraphics