menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ImageFormat - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved