Search Results for

    Show / Hide Table of Contents

    Class ImageType

    Represents the supported image formats for Image elements.

    Inheritance
    System.Object
    ImageType
    Namespace: IronWord.Models.Enums
    Assembly: IronWord.dll
    Syntax
    public sealed class ImageType : Enum

    Identify the format of an image added to or read from a Word document with ImageType. Png and Jpeg cover the common raster formats for screenshots and photos, Gif and Bmp handle simple and uncompressed bitmaps, Tiff suits high-resolution scans, and Svg carries vector artwork. Metafile and legacy formats (Emf, Wmf, Icon, Pcx) round out the set. The add image example inserts a picture, and the extract images how-to pulls them back out.

    var imageType = ImageType.Png;

    Fields

    Bmp

    Windows Bitmap Graphics (.bmp).

    Declaration
    public const ImageType Bmp
    Field Value
    Type Description
    ImageType

    Emf

    Extended (Enhanced) Windows Metafile Format (.emf).

    Declaration
    public const ImageType Emf
    Field Value
    Type Description
    ImageType

    Gif

    Graphic Interchange Format (.gif).

    Declaration
    public const ImageType Gif
    Field Value
    Type Description
    ImageType

    Icon

    Windows Icon (.ico).

    Declaration
    public const ImageType Icon
    Field Value
    Type Description
    ImageType

    Jpeg

    JPEG/JIFF Image (.jpeg).

    Declaration
    public const ImageType Jpeg
    Field Value
    Type Description
    ImageType

    Pcx

    PC Paintbrush Bitmap Graphic (.pcx).

    Declaration
    public const ImageType Pcx
    Field Value
    Type Description
    ImageType

    Png

    Portable (Public) Network Graphic (.png).

    Declaration
    public const ImageType Png
    Field Value
    Type Description
    ImageType

    Svg

    Scalable Vector Graphics (.svg).

    Declaration
    public const ImageType Svg
    Field Value
    Type Description
    ImageType

    Tiff

    Tagged Image Format File (.tiff).

    Declaration
    public const ImageType Tiff
    Field Value
    Type Description
    ImageType

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32

    Wmf

    Windows Metafile (.wmf).

    Declaration
    public const ImageType Wmf
    Field Value
    Type Description
    ImageType
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet