[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Windows.GcD2DBitmap.CreateImage

CreateImage Method

CreateImage(int, int, float, float)

Creates an image with the given size and resolution.

The content is not initialized by this method and can contain any random data.

Declaration
public void CreateImage(int pixelWidth, int pixelHeight, float dpiX, float dpiY)
Public Sub CreateImage(pixelWidth As Integer, pixelHeight As Integer, dpiX As Single, dpiY As Single)
Parameters
Type Name Description
int pixelWidth

The width of the image, in pixels.

int pixelHeight

The height of the image, in pixels.

float dpiX

The horizontal resolution (DPI) of the image.

float dpiY

The vertical resolution (DPI) of the image.

CreateImage(int, int)

Creates an image with the given size and 96 DPI resolution.

Declaration
public void CreateImage(int pixelWidth, int pixelHeight)
Public Sub CreateImage(pixelWidth As Integer, pixelHeight As Integer)
Parameters
Type Name Description
int pixelWidth

The width of the image, in pixels.

int pixelHeight

The height of the image, in pixels.