Class ImageFormat
Represents the image format.
Inheritance
System.Object
ImageFormat
Namespace: Syncfusion.Blazor.DocumentEditor
Assembly: Syncfusion.Blazor.DocumentEditor.dll
Syntax
public sealed class ImageFormat : Enum
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
Jpeg
Specfies the jpeg image format.
Declaration
public const ImageFormat Jpeg
Field Value
Type |
---|
ImageFormat |
Png
Specifies the png image format.
Declaration
public const ImageFormat Png
Field Value
Type |
---|
ImageFormat |