# PdfImageFormat enum

> The file format an image came from. PdfImageFormat enum, PdfNetStack.Drawing namespace.

Namespace: [PdfNetStack.Drawing](https://www.jadev-corp.com/api/pdfnetstack-drawing/)  
Assembly: PdfNetStack.dll  
Package: `PdfNetStack`

The file format an image came from.

```csharp
public enum PdfImageFormat
```

## Fields

`Jpeg = 0` 

JPEG, embedded as is (DCTDecode).

`Png = 1` 

PNG, embedded as Flate compressed samples, with its alpha channel as a soft mask.

`Gif = 2` 

GIF, its first frame embedded as palette samples, its transparent color as a soft mask.

`Bmp = 3` 

BMP, decoded and embedded as Flate compressed samples; palette images keep their palette.

`Tiff = 4` 

TIFF, one page of it. A single strip of CCITT fax or JPEG data is embedded as is
(CCITTFaxDecode, DCTDecode); other pages are decoded and Flate compressed.

`WebP = 5` 

WebP, lossy or lossless, its first frame decoded and Flate compressed, its alpha as a soft mask.

Source: https://www.jadev-corp.com/pdfnetstack/api/pdfnetstack-drawing/pdfimageformat/
