[]
Creates the image of the given size and resolution.
The content is not initialized and can contain any random data.
public void CreateImage(int pixelWidth, int pixelHeight, bool opaque, float dpiX = 96, float dpiY = 96)
Public Sub CreateImage(pixelWidth As Integer, pixelHeight As Integer, opaque As Boolean, Optional dpiX As Single = 96, Optional dpiY As Single = 96)
Type | Name | Description |
---|---|---|
int | pixelWidth | The width of the image, in pixels. |
int | pixelHeight | The height of the image, in pixels. |
bool | opaque | Indicates if the alpha channel should be ignored. |
float | dpiX | The horizontal dpi of the image. |
float | dpiY | The vertical dpi of the image. |