## ImageType enum


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

```cpp
enum class ImageType
```

### Values

| Name | Value | Description |
| --- | --- | --- |
| NoImage | 0 | The is no image data. |
| Unknown | 1 | An unknown image type or image type that cannot be directly stored inside a Microsoft Word document. |
| Emf | 2 | Windows Enhanced Metafile. |
| Wmf | 3 | Windows Metafile. |
| Pict | 4 | Macintosh PICT. An existing image will be preserved in a document, but inserting new PICT images into a document is not supported. |
| Jpeg | 5 | JPEG JFIF. |
| Png | 6 | Portable Network Graphics. |
| Bmp | 7 | Windows Bitmap. |
| Eps | 8 | Encapsulated PostScript. |
| WebP | 9 | WebP. |
| Gif | 10 | GIF. |


## Examples



Shows how to add an image to a shape and check its type. 
```cpp
auto doc = System::MakeObject<Aspose::Words::Document>();
auto builder = System::MakeObject<Aspose::Words::DocumentBuilder>(doc);

System::SharedPtr<Aspose::Words::Drawing::Shape> imgShape = builder->InsertImage(get_ImageDir() + u"Logo.jpg");
ASSERT_EQ(ImageType::Jpeg, imgShape->get_ImageData()->get_ImageType());
```

## See Also

* Namespace [Aspose::Words::Drawing](../)
* Library [Aspose.Words for C++](../../)
