ImageType

Overview

ImageType is an enum in Aspose.Words FOSS for Java.

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

Edition status of its 16 listed members (a property and its accessor methods are listed separately, overloads once): 16 not yet exercised by a verified example.

This enum declares 4 methods for ImageType objects in Java programs. Available methods include: fromName, getName, getValues, toString. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: values.

Values

ValueDescription
NO_IMAGEThe 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.
JPEGJPEG JFIF.
PNGPortable Network Graphics.
BMPWindows Bitmap.
EPSEncapsulated PostScript.
WEB_PWebP.
GIFGIF

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of ImageType values.

Methods

SignatureDescription
getName(imageType: int) → StringReturns JAVA_STYLE string representation of integer ImageType value.
toString(imageType: int) → StringReturns DotNetStyle string representation of integer ImageType value.
fromName(imageTypeName: String) → intReturns integer representation by ImageType name.
getValues() → int[]Returns array of ImageType values.

See Also