[]
Specifies the image format used by APIs that import, fill, or export images.
Use this enum to indicate the format of image data when working with drawing-related APIs, such as adding a picture from a stream or exporting a shape as an image.
public enum ImageType
Public Enum ImageType
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 10, 10, 80, 40);
using MemoryStream stream = new MemoryStream();
shape.ToImage(stream, ImageType.PNG);
| Name | Description |
|---|---|
| EMF | Indicates an emf image. |
| GIF | Indicates a gif image. |
| ICO | Indicates a ico image. |
| JPEG | Indicates a jpeg image. |
| JPG | Indicates a jpg image. |
| PNG | Indicates a png image. |
| SVG | Indicates an svg image. |
| WMF | Indicates a wmf image. |