TXlsImgType Enumeration
Possible image types on an excel sheet.
Syntax
Unit: FlexCel.Core
Members
Name | Value | Description |
---|---|---|
Emf | 0 | Enhanced Windows Metafile. This is a Vectorial image format. It is only rendered when using a GDI+ graphics backend (That is Windows). |
Wmf | 1 | Windows Metafile. This is a Vectorial image format. It is only rendered when using a GDI+ graphics backend (That is Windows). |
Jpeg | 2 | JPEG Image. This is a lossy compressed bitmap, best suited for photos. |
Png | 3 | Portable Network Graphics. This is a lossless compressed bitmap, best suited for text. |
Bmp | 4 | Windows Bitmap. As this is not compressed, don't use it except for really small images. |
Pict | 5 | Macintosh PICT. This won't be rendered by FlexCel, and you shouldn't add images in this format. This file format was used in the original macOS, and has been deprecated since OSX. |
Tiff | 6 | Tiff Image: http://partners.adobe.com/public/developer/tiff/index.html#spec This is NOT supported in xls file format, only xlsx. It is only rendered when using a GDI+ graphics backend (That Windows). |
Gif | 7 | Gif Image. This is NOT supported in xls file format, only xlsx. It is reasonably supported in graphics backends, but whenever possible you should prefer using PNGs. Almost the only use case for gif images is for animated gifs. |
Svg | 8 | SVG Image. This is a vectorial vector, only supported in Excel 2019+ or Excel 365. As older Excels don't support SVG, Excel saves both a PNG image for them and an SVG image for the newer formats. When adding an SVG with the API, you need to supply both the SVG and the backup PNG. For more information see S V G Files Inside Xlsx Files. |
Unknown | 9 | Unsupported image format. |