Enum ImageFormat
Represents the image format.
Namespace: Syncfusion.Blazor.DocumentEditor
Assembly: Syncfusion.Blazor.DocumentEditor.dll
Syntax
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum ImageFormat
Examples
The following code example demonstrates how to export a page as image in Blazor Document editor component.
FileStream fileStream = new FileStream("Page1.png", FileMode.CreateNew, FileAccess.ReadWrite);
//Exports page as image.
await sfDocumentEditorContainer.DocumentEditor.ExportAsImageAsync(fileStream, 1, ImageFormat.Png);
fileStream.Dispose();
Fields
| Name | Description |
|---|---|
| Jpeg | Specfies the jpeg image format. |
| Png | Specifies the png image format. |