Class LossyEncoderOptions
Generic options for lossy encoders.
Inheritance
System.Object
LossyEncoderOptions
Assembly: PhotoSauce.MagicScaler.dll
Syntax
public sealed class LossyEncoderOptions : ValueType, ILossyEncoderOptions, IEncoderOptions
Constructors
LossyEncoderOptions(Int32)
Generic options for lossy encoders.
Declaration
public LossyEncoderOptions(int Quality)
Parameters
Type |
Name |
Description |
System.Int32 |
Quality |
The desired image quality in the range of 0-100, where 1 is minimum quality and 100 is maximum quality. A value of 0 indicates quality should be set automatically.
|
Properties
Default
Default lossy encoder options.
Declaration
public static LossyEncoderOptions Default { get; }
Property Value
Quality
The desired image quality in the range of 0-100, where 1 is minimum quality and 100 is maximum quality. A value of 0 indicates quality should be set automatically.
Declaration
public int Quality { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Deconstruct(out Int32)
Declaration
public void Deconstruct(out int Quality)
Parameters
Type |
Name |
Description |
System.Int32 |
Quality |
|
Equals(LossyEncoderOptions)
Declaration
public bool Equals(LossyEncoderOptions 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(LossyEncoderOptions, LossyEncoderOptions)
Declaration
public static bool operator ==(LossyEncoderOptions left, LossyEncoderOptions right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(LossyEncoderOptions, LossyEncoderOptions)
Declaration
public static bool operator !=(LossyEncoderOptions left, LossyEncoderOptions right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<>