Class CompressionParameters
Parameters of compression.
Inheritance
Inherited Members
Namespace: BitMiracle.LibJpeg
Assembly: BitMiracle.LibJpeg.NET.dll
Syntax
public class CompressionParameters
Remarks
Being used in WriteJpeg(Stream, CompressionParameters)
Constructors
| Improve this Doc View SourceCompressionParameters()
Initializes a new instance of the CompressionParameters class.
Declaration
public CompressionParameters()
Properties
| Improve this Doc View SourceQuality
Gets or sets the quality of JPEG image.
Declaration
public int Quality { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The quality of JPEG image. |
Remarks
Default value: 75
The quality value is expressed on the 0..100 scale.
SimpleProgressive
Gets or sets a value indicating whether to write a progressive-JPEG file.
Declaration
public bool SimpleProgressive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
SmoothingFactor
Gets or sets the coefficient of image smoothing.
Declaration
public int SmoothingFactor { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The coefficient of image smoothing. |
Remarks
Default value: 0
If non-zero, the input image is smoothed; the value should be 1 for
minimal smoothing to 100 for maximum smoothing.
Methods
| Improve this Doc View SourceEquals(Object)
Determines whether the specified System.Object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |