ImageType enumeration

ImageType enumeration

Specifies the type (format) of an image in a Microsoft Word document.

Members

NameDescription
NoImageThe is no image data.
UnknownAn unknown image type or image type that cannot be directly stored inside a Microsoft Word document.
EmfWindows Enhanced Metafile.
WmfWindows Metafile.
PictMacintosh PICT. An existing image will be preserved in a document, but inserting new PICT images into a document is not supported.
JpegJPEG JFIF.
PngPortable Network Graphics.
BmpWindows Bitmap.
EpsEncapsulated PostScript.
WebPWebP.
GifGIF

Examples

Shows how to read WebP image.

let doc = new aw.Document(base.myDir + "Document with WebP image.docx");

let shape = doc.getShape(0, true);
expect(shape.imageData.imageType).toEqual(aw.Drawing.ImageType.WebP);

See Also