Show / Hide Table of Contents

Class CompressionParameters

Parameters of compression.

Inheritance
System.Object
CompressionParameters
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: BitMiracle.LibJpeg
Assembly: BitMiracle.LibJpeg.NET.dll
Syntax
public class CompressionParameters
Remarks

Being used in WriteJpeg(Stream, CompressionParameters)

Constructors

| Improve this Doc View Source

CompressionParameters()

Initializes a new instance of the CompressionParameters class.

Declaration
public CompressionParameters()

Properties

| Improve this Doc View Source

Quality

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.

| Improve this Doc View Source

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

true for writing a progressive-JPEG file; false for non-progressive JPEG files.

| Improve this Doc View Source

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 Source

Equals(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

true if the specified System.Object is equal to this instance; otherwise, false.

Overrides
System.Object.Equals(System.Object)
| Improve this Doc View Source

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.

Overrides
System.Object.GetHashCode()
  • Improve this Doc
  • View Source
Back to top Generated by DocFX