Search Results for

    Show / Hide Table of Contents

    Interface IImageEncoder

    An encoder capable of writing image data.

    Namespace: PhotoSauce.MagicScaler
    Assembly: PhotoSauce.MagicScaler.dll
    Syntax
    public interface IImageEncoder

    Methods

    Commit()

    Finish writing the image file, and disallow writing any more frames. For most single-frame formats, this method is a no-op.

    Declaration
    void Commit()

    WriteFrame(IPixelSource, IMetadataSource, Rectangle)

    Writes a new image frame to the encoder output, including the pixels and metadata provided.

    Declaration
    void WriteFrame(IPixelSource source, IMetadataSource metadata, Rectangle region)
    Parameters
    Type Name Description
    IPixelSource source

    The source of pixels for the new image frame.

    IMetadataSource metadata

    The source of metadata for the new image frame.

    System.Drawing.Rectangle region

    The region of interest to take from thie pixel source. If this value is System.Drawing.Rectangle.Empty, the entire source will be written.

    In This Article
    Back to top Copyright © 2022 Clinton Ingram
    Generated with DocFX