Discards old bitmap data and creates new bitmap of given dimensions and pixel format.
Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub Create ( _ width As Single, _ height As Single, _ format As PixelFormat _ ) |
| C# |
|---|
public void Create ( float width, float height, PixelFormat format ) |
| Visual C++ |
|---|
public: void Create ( float width, float height, PixelFormat format ) |
Parameters
- width
- Width of new bitmap (in pixels).
- height
- Height of new bitmap (in pixels).
- format
- Pixel format of new bitmap. If you specify indexed pixel format, uninitialized palette will be generated. You must fill entries yourself. Palette will have maximum possible for given pixel format colors number (2 colors for 1-bit images, 16 colors for 4-bit images, and 256 colors for 8-bit images).
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