SetResolution(DpiX: Double, DpiY: Double);
DpiX - image width.
DpiY - image height.
The SetResolution method sets image resolution.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Image: IGxBitmap;
Color: IGxColor;
Begin
Image:=New GxBitmap.CreateFromFile("c:\1.bmp");
Image.SetResolution(640,480);
End Sub Button1OnClick;
After executing the example clicking the button creates a new bitmap in the workspace. The 1.bmp file is the source of the image. The 640*480 resolution is set for the image.
See also: