Class PngEncoderOptions
True-color/greyscale PNG encoder options.
Inheritance
System.Object
PngEncoderOptions
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
Filter
The PngFilter to apply to the image before compression.
Declaration
public PngFilter Filter { get; set; }
Property Value
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
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
Returns
Type |
Description |
System.Boolean |
|
Inequality(PngEncoderOptions, PngEncoderOptions)
Declaration
public static bool operator !=(PngEncoderOptions left, PngEncoderOptions right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<>