IGxBitmap.SetResolution

Syntax

SetResolution(DpiX: Double, DpiY: Double);

Parameters

DpiX - image width.

DpiY - image height.

Description

The SetResolution method sets image resolution.

Example

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:

IGxBitmap