Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ImageEncodingProperties class

Describes the format of an image stream.

Syntax


Public NotInheritable Class ImageEncodingProperties
    Implements IMediaEncodingProperties

Members

The ImageEncodingProperties class has these types of members:

Constructors

The ImageEncodingProperties class has these constructors.

ConstructorDescription
ImageEncodingProperties Creates a new instance of the ImageEncodingProperties class.

 

Methods

The ImageEncodingProperties class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
CreateBmp Creates an instance of ImageEncodingProperties for a BMP image.
CreateJpeg Creates an instance of ImageEncodingProperties for a JPEG image.
CreateJpegXR Creates an instance of ImageEncodingProperties for a JPEG XR image.
CreatePng Creates an instance of ImageEncodingProperties for a PNG image.
CreateUncompressed Creates an instance of ImageEncodingProperties for an uncompressed image.

 

Properties

The ImageEncodingProperties class has these properties.

PropertyAccess typeDescription

Height

Read/write

Gets or sets the image height.

Properties

Read-only

Gets additional format properties for the image stream.

Subtype

Read/write

Gets or sets the subtype of the format.

Type

Read-only

Gets the format type.

Width

Read/write

Gets or sets the image width.

 

Examples

The following example creates an instance of this class and then creates the properties for a Png stream.


function createPngProperties() {
    var pngProperties = new Windows.Media.MediaProperties.ImageEncodingProperties();
    pngProperties = Windows.Media.MediaProperties.ImageEncodingProperties.createPng();
}


Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Media.MediaProperties
Windows::Media::MediaProperties [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.MediaProperties
Windows::Media::MediaProperties [C++]

Metadata

Windows.winmd

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

See also

Object
IMediaEncodingProperties

 

 

Show: