Class PixelFormat
Specifies the format of the color data for each pixel in the image.
Inheritance
Namespace: IronPdf
Assembly: IronPdf.dll
Syntax
public sealed class PixelFormat : Enum
The PixelFormat enumeration in IronPDF declares the per-pixel colour layout used when a page is rasterised to a bitmap.
Part of the IronPdf namespace, the two members are Format32bppArgb and Format32bppRgb. Format32bppArgb preserves transparency for image overlays and stamping pipelines, while Format32bppRgb drops the alpha channel and produces smaller buffers for opaque-only output such as thumbnails or print rasters.
See convert PDF pages to images for example code.
Fields
Format32bppArgb
Specifies that the format is 32 bits per pixel; 8 bits each are used for the
alpha, red, green, and blue components.
Declaration
public const PixelFormat Format32bppArgb
Field Value
| Type | Description |
|---|---|
| PixelFormat |
Format32bppRgb
Specifies that 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.
Declaration
public const PixelFormat Format32bppRgb
Field Value
| Type | Description |
|---|---|
| PixelFormat |
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |