Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ImageFormat

    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 Description
    ImageFormat

    Png

    Specifies the png image format.

    Declaration
    public const ImageFormat Png
    Field Value
    Type Description
    ImageFormat

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved