Class JpegEncoder

    Definition

    Namespace:
    Tizen.Multimedia.Util
    Assembly:
    Tizen.Multimedia.Util.dll

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

    public class JpegEncoder : ImageEncoder, IDisposable
    Inheritance
    object
    ImageEncoder
    JpegEncoder
    Implements
    System.IDisposable

    Constructors

    View Source

    JpegEncoder()

    Initializes a new instance of the JpegEncoder class.

    Declaration
    public JpegEncoder()
    Remarks

    OutputFormat will be the Jpeg.

    View Source

    JpegEncoder(int)

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

    Declaration
    public JpegEncoder(int quality)
    Parameters
    Type Name Description
    int quality

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

    Remarks

    OutputFormat will be the Jpeg.

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

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

    Fields

    View Source

    DefaultQuality

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

    Declaration
    public static readonly int DefaultQuality
    Field Value
    Type Description
    int

    Properties

    View Source

    Quality

    Gets or sets the quality of the encoded image.

    Declaration
    public int Quality { get; set; }
    Property Value
    Type Description
    int

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

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

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

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX