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

Applies to Windows and Windows Phone

Describes the format of an image stream.

Syntax

Public NotInheritable Class ImageEncodingProperties
    Implements IMediaEncodingProperties

Attributes

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

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/writeGets or sets the image height.

Properties

Read-onlyGets additional format properties for the image stream.

Subtype

Read/writeGets or sets the subtype of the format.

Type

Read-onlyGets the format type.

Width

Read/writeGets 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

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

 

 

Show:
© 2014 Microsoft