Search Results for

    Show / Hide Table of Contents

    TXlsImgType Enumeration

    Possible image types on an excel sheet.

    Syntax

    Namespace: 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 "classic" .NET framework or .NET 5+ in Windows with FlexCelConfig.GraphicFramework set to native. ).
    Wmf 1 Windows Metafile. This is a Vectorial image format.

    It is only rendered when using a GDI+ graphics backend (That is "classic" .NET framework or .NET 5+ in Windows with FlexCelConfig.GraphicFramework set to native. ).
    Jpeg 2 JPEG Image. This is a lossy compressed bitmap, best suited for photos.
    Png 3 Portable Network Graphics. This is a losslessly 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 is "classic" .NET framework or .NET 5+ in Windows with FlexCelConfig.GraphicFramework set to native. ).
    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.
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com