alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    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.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved