Search Results for

    Show / Hide Table of Contents

    Class PngEncoderOptions

    True-color/greyscale PNG encoder options.

    Inheritance
    System.Object
    PngEncoderOptions
    Implements
    IPngEncoderOptions
    IEncoderOptions
    System.IEquatable<PngEncoderOptions>
    Namespace: PhotoSauce.MagicScaler
    Assembly: PhotoSauce.MagicScaler.dll
    Syntax
    public sealed class PngEncoderOptions : ValueType, IPngEncoderOptions, IEncoderOptions

    Constructors

    PngEncoderOptions(PngFilter, Boolean)

    True-color/greyscale PNG encoder options.

    Declaration
    public PngEncoderOptions(PngFilter Filter, bool Interlace)
    Parameters
    Type Name Description
    PngFilter Filter

    The PngFilter to apply to the image before compression.

    System.Boolean Interlace

    True to enable interlaced PNG output, otherwise false.

    Properties

    Default

    Default PNG encoder options.

    Declaration
    public static PngEncoderOptions Default { get; }
    Property Value
    Type Description
    PngEncoderOptions

    Filter

    The PngFilter to apply to the image before compression.

    Declaration
    public PngFilter Filter { get; set; }
    Property Value
    Type Description
    PngFilter

    Interlace

    True to enable interlaced PNG output, otherwise false.

    Declaration
    public bool Interlace { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Deconstruct(out PngFilter, out Boolean)

    Declaration
    public void Deconstruct(out PngFilter Filter, out bool Interlace)
    Parameters
    Type Name Description
    PngFilter Filter
    System.Boolean Interlace

    Equals(PngEncoderOptions)

    Declaration
    public bool Equals(PngEncoderOptions other)
    Parameters
    Type Name Description
    PngEncoderOptions other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    Operators

    Equality(PngEncoderOptions, PngEncoderOptions)

    Declaration
    public static bool operator ==(PngEncoderOptions left, PngEncoderOptions right)
    Parameters
    Type Name Description
    PngEncoderOptions left
    PngEncoderOptions right
    Returns
    Type Description
    System.Boolean

    Inequality(PngEncoderOptions, PngEncoderOptions)

    Declaration
    public static bool operator !=(PngEncoderOptions left, PngEncoderOptions right)
    Parameters
    Type Name Description
    PngEncoderOptions left
    PngEncoderOptions right
    Returns
    Type Description
    System.Boolean

    Implements

    IPngEncoderOptions
    IEncoderOptions
    System.IEquatable<>
    In This Article
    Back to top Copyright © 2022 Clinton Ingram
    Generated with DocFX