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.
| Constructor | Description |
|---|---|
| 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.
| Method | Description |
|---|---|
| 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.
| Property | Access type | Description |
|---|---|---|
| Read/write | Gets or sets the image height. | |
| Read-only | Gets additional format properties for the image stream. | |
| Read/write | Gets or sets the subtype of the format. | |
| Read-only | Gets or sets the format type. | |
| 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
|
Minimum supported client | Windows 8 [Windows Store apps, desktop apps] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps, desktop apps] |
|
Namespace |
|
|
Metadata |
|
Build date: 12/4/2012
