InterpolationMode: GxInterpolationMode;
The InterpolationMode property determines interpolation mode of the graphic object.
Executing the example requires a form with the button named Button1 and the ImageBox component named ImageBox1. The file system should contain the image C:\Map.bmp. Add links to the Drawing, Forms system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
m_Image: IGxImage;
m_Graphics: IGxGraphics;
Begin
m_Image := GxBitmap.FromFile("C:\Map.bmp");
m_Graphics := GxGraphicsClass.FromImage(m_Image);
m_Graphics.InterpolationMode := GxInterpolationMode.Bilinear;
m_Graphics.CompositingQuality := GxCompositingQuality.HighQuality;
ImageBox1.Image := m_Image;
End Sub Button1OnClick;
After executing the example clicking the button in the ImageBox component displays loaded image from the C:\Map.bmp file with the defined rendering quality and interpolation mode.
See also: