Enum EmfPlusPixelFormat

Enum EmfPlusPixelFormat

Namespace: Aspose.Imaging.FileFormats.Emf.EmfPlus.Consts
Assembly: Aspose.Imaging.dll (25.2.0)

The PixelFormat enumeration defines pixel formats that are supported in EMF+ bitmaps.

public enum EmfPlusPixelFormat

Fields

PixelFormat16bppARGB1555 = 397319

The format is 16 bits per pixel; 1 bit is used for the alpha component, and 5 bits each are used for the red, green, and blue components.

PixelFormat16bppGrayScale = 1052676

The format is 16 bits per pixel, grayscale.

PixelFormat16bppRGB555 = 135173

The format is 16 bits per pixel; 5 bits each are used for the red, green, and blue components. The remaining bit is not used.

PixelFormat16bppRGB565 = 135174

The format is 16 bits per pixel; 5 bits are used for the red component, 6 bits for the green component, and 5 bits for the blue component.

PixelFormat1bppIndexed = 196865

The format is monochrome, and a color palette lookup table is used.

PixelFormat24bppRGB = 137224

The format is 24 bits per pixel; 8 bits each are used for the red, green, and blue components.

PixelFormat32bppARGB = 2498570

The format is 32 bits per pixel; 8 bits each are used for the alpha, red, green, and blue components.

PixelFormat32bppPARGB = 925707

The format is 32 bits per pixel; 8 bits each are used for the alpha, red, green, and blue components. The red, green, and blue components are premultiplied according to the alpha component.

PixelFormat32bppRGB = 139273

The format is 32 bits per pixel; 8 bits each are used for the red, green, and blue components. The remaining 8 bits are not used.

PixelFormat48bppRGB = 1060876

The format is 48 bits per pixel; 16 bits each are used for the red, green, and blue components.

PixelFormat4bppIndexed = 197634

The format is 16-color, and a color palette lookup table is used.

PixelFormat64bppARGB = 3424269

The format is 64 bits per pixel; 16 bits each are used for the alpha, red, green, and blue components.

PixelFormat64bppPARGB = 1720334

The format is 64 bits per pixel; 16 bits each are used for the alpha, red, green, and blue components. The red, green, and blue components are premultiplied according to the alpha component.

PixelFormat8bppIndexed = 198659

The format is 256-color, and a color palette lookup table is used.

PixelFormatUndefined = 0

The format is not specified.

Pixel formats are specified by Aspose.Imaging.FileFormats.Emf.EmfPlus.Objects.EmfPlusBitmap objects. They are encoded as follows:

  • Bits 0-7: Enumeration of the pixel format constants, starting at zero.
  • Bits 8-15: The total number of bits per pixel.
  • Bit 16: If set, the color value is indexed into a palette.
  • Bit 17: If set, the color value is in a GDI-supported format.
  • Bit 18: If set, the color value has an alpha component.
  • Bit 19: If set, the color value has a premultiplied alpha component.
  • Bit 20: If set, extended colors, 16-bits per channel, are supported.
  • Bits 21-31: Reserved.