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
| Value | Description |
|---|---|
NO_IMAGE | The is no image data. |
UNKNOWN | An unknown image type or image type that cannot be directly stored inside a Microsoft Word document. |
EMF | Windows Enhanced Metafile. |
WMF | Windows Metafile. |
PICT | Macintosh PICT. |
JPEG | JPEG JFIF. |
PNG | Portable Network Graphics. |
BMP | Windows Bitmap. |
EPS | Encapsulated PostScript. |
WEB_P | WebP. |
GIF | GIF |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
values | int[] | Read | Returns array of ImageType values. |
Methods
| Signature | Description |
|---|---|
getName(imageType: int) → String | Returns JAVA_STYLE string representation of integer ImageType value. |
toString(imageType: int) → String | Returns DotNetStyle string representation of integer ImageType value. |
fromName(imageTypeName: String) → int | Returns integer representation by ImageType name. |
getValues() → int[] | Returns array of ImageType values. |