This topic has not yet been rated - Rate this topic

ImageEncodingProperties class

Describes the format of an image stream.

Syntax


var imageEncodingProperties = new Windows.Media.MediaProperties.ImageEncodingProperties();

Attributes

ActivatableAttribute(NTDDI_WIN8)
DualApiPartitionAttribute()
MarshalingBehaviorAttribute(Agile)
StaticAttribute(Windows.Media.MediaProperties.IImageEncodingPropertiesStatics, NTDDI_WIN8)
ThreadingAttribute(Both)
VersionAttribute(NTDDI_WIN8)

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
CreateJpeg Creates the properties for a Jpeg stream.
CreateJpegXR Creates the properties for a JpegXR stream.
CreatePng Creates the properties for a Png stream.

 

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 or sets 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]

Namespace

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

Metadata

Windows.winmd

 

 

Build date: 12/4/2012

© 2013 Microsoft. All rights reserved.