Aurigma Graphics Mill 5.5 for .NET
Bitmap..::.Create Method (Single, Single, PixelFormat, ColorPalette)
Discards old bitmap data and creates new bitmap of given dimensions, pixel format and palette.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Visual Basic
Public Sub Create ( _ width As Single, _ height As Single, _ format As PixelFormat, _ palette As ColorPalette _ )
C#
public void Create( float width, float height, PixelFormat format, ColorPalette palette )
Parameters
- width
-
Type: System..::.Single
Width of new bitmap (in pixels).
- height
-
Type: System..::.Single
Height of new bitmap (in pixels).
- format
- Pixel format of new bitmap. If pixel format is not indexed, palette is ignored.
- palette
- Palette attached to new bitmap.
Remarks
Bitmap data is stuffed with zeros. So if pixel format:
- supports alpha channel image is fully transparent
- is RGB image is filled with black color
- is CMYK image is filled with white color
- is indexed image has color of the first palette entry