CreateImage(Int32,Int32,Boolean,Single,Single) Method
In This Topic
Creates the image of the given size and resolution.
The content is not initialized and can contain any random data.
If subsequent rendering is going to cover the whole surface of the bitmap, or if CreateGraphics will be called on the bitmap with a non-null background color, clearing it (which is a lengthy operation for large bitmaps) is not needed. If some areas of the bitmap are going to be left untouched, they must be cleared to avoid the possibility of random artifacts showing.
Syntax
'Declaration
Public Overloads Sub CreateImage( _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByVal As System.Boolean, _
Optional ByVal As System.Single, _
Optional ByVal As System.Single _
)
public void CreateImage(
System.int ,
System.int ,
System.bool ,
System.float ,
System.float
)
Parameters
- pixelWidth
- The width of the image, in pixels.
- pixelHeight
- The height of the image, in pixels.
- opaque
- Indicates if the alpha channel should be ignored.
- dpiX
- The horizontal dpi of the image.
- dpiY
- The vertical dpi of the image.
See Also