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.
public class JpegEncoder : ImageEncoder, IDisposable
- Inheritance
- Implements
Constructors
View SourceJpegEncoder()
Initializes a new instance of the JpegEncoder class.
Declaration
public JpegEncoder()
Remarks
OutputFormat will be the Jpeg.
API Level: 4
View SourceJpegEncoder(Int32)
Initializes a new instance of the JpegEncoder class with initial quality value.
Declaration
public JpegEncoder(int quality)
Parameters
Type | Name | Description |
---|---|---|
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 |
|
API Level: 4
Fields
View SourceDefaultQuality
A read-only field that represents the default value of Quality.
Declaration
public static readonly int DefaultQuality
Field Value
Type | Description |
---|---|
Int32 |
API Level: 4
Properties
View SourceQuality
Gets or sets the quality of the encoded image.
Declaration
public int Quality { get; set; }
Property Value
Type | Description |
---|---|
Int32 | The quality of the output image. The default is 75. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|