Class JpegEncoder

Definition

Namespace:
Tizen.Multimedia.Util
Assembly:
Tizen.Multimedia.Util.dll
API Level:
4

Provides the ability to encode the Joint Photographic Experts Group (JPEG) format images.

C#
Copy
public class JpegEncoder : ImageEncoder, IDisposable
Inheritance
JpegEncoder
Implements
System.IDisposable

Constructors

View Source

JpegEncoder()

Initializes a new instance of the JpegEncoder class.

Declaration
C#
Copy
public JpegEncoder()
Remarks

OutputFormat will be the Jpeg.

API Level: 4
View Source

JpegEncoder(Int32)

Initializes a new instance of the JpegEncoder class with initial quality value.

Declaration
C#
Copy
public JpegEncoder(int quality)
Parameters
Type Name Description
System.Int32 quality

The quality for JPEG image encoding; from 1(lowest quality) to 100(highest quality).

Remarks

OutputFormat will be the Jpeg.

Exceptions
Type Condition
ArgumentOutOfRangeException

quality is less than or equal to 0.
-or-
quality is greater than 100.

API Level: 4

Fields

View Source

DefaultQuality

A read-only field that represents the default value of Quality.

Declaration
C#
Copy
public static readonly int DefaultQuality
Field Value
Type Description
System.Int32
API Level: 4

Properties

View Source

Quality

Gets or sets the quality of the encoded image.

Declaration
C#
Copy
public int Quality { get; set; }
Property Value
Type Description
System.Int32

The quality of the output image. The default is 75.
Valid value is from 1(lowest quality) to 100(highest quality).

Exceptions
Type Condition
ArgumentOutOfRangeException

value is less than or equal to 0.
-or-
value is greater than 100.

API Level: 4

Implements

System.IDisposable