[This documentation is preliminary and is subject to change.]
Applies to: Metro style apps only
Provides read access to bitmap container data as well as data from the first frame.
Syntax
var bitmapDecoder = Windows.Graphics.Imaging.BitmapDecoder;
Attributes
- MarshalingBehaviorAttribute(Agile)
- StaticAttribute(Windows.Graphics.Imaging.IBitmapDecoderStatics, NTDDI_WIN8)
- VersionAttribute(NTDDI_WIN8)
Members
The BitmapDecoder class has these types of members:
Methods
The BitmapDecoder class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
| Method | Description |
|---|---|
| CreateAsync(Guid, IRandomAccessStream) | Asynchronously creates a new BitmapDecoder using a specific bitmap codec and initializes it using a stream. |
| CreateAsync(IRandomAccessStream) | Asynchronously creates a new BitmapDecoder and initializes it using a stream. |
| GetDecoderInformationEnumerator | Enumerates the bitmap decoders installed on the system and provides information about them. |
| GetFrameAsync | Asynchronously retrieves a frame from the image file. |
| GetPixelDataAsync() | Asynchronously requests the pixel data for the frame. |
| GetPixelDataAsync(BitmapPixelFormat, BitmapAlphaMode, BitmapTransform, ExifOrientationMode, ColorManagementMode) | Asynchronously requests the pixel data for the frame using the specified parameters. |
| GetPreviewAsync | Asynchronously retrieves the container preview. |
| GetThumbnailAsync | Asynchronously retrieves the thumbnail for the frame. |
Properties
The BitmapDecoder class has these properties.
| Property | Access type | Description |
|---|---|---|
| Read-only | Returns the default alpha mode of the first frame. | |
| Read-only | Provides access to the container bitmap properties. | |
| Read-only | Returns the default pixel format of the first frame. | |
| Read-only | Returns a read-only view of the metadata within the first frame. | |
| Read-only | Returns the CLSID of the built-in BMP decoder. | |
| Read-only | Returns information about the bitmap decoder. | |
| Read-only | Returns the horizontal resolution of the first frame in dots per inch. | |
| Read-only | Returns the vertical resolution of the first frame in dots per inch. | |
| Read-only | Returns the number of frames within the image file. | |
| Read-only | Returns the CLSID of the built-in GIF decoder. | |
| Read-only | Returns the CLSID of the built-in ICO decoder. | |
| Read-only | Returns the CLSID of the built-in JPEG decoder. | |
| Read-only | Returns the CLSID of the built-in JPEG-XR decoder. | |
| Read-only | Returns the height of the first frame in pixels, after any EXIF orientation has been applied to the bitmap. | |
| Read-only | Returns the width of the first frame in pixels, after any EXIF orientation has been applied to the bitmap. | |
| Read-only | Returns the height of the first frame in pixels. | |
| Read-only | Returns the width of the first frame in pixels. | |
| Read-only | Returns the CLSID of the built-in PNG decoder. | |
| Read-only | Returns the CLSID of the built-in TIFF decoder. |
Remarks
The BitmapDecoder class implements IBitmapFrame. It provides access to container data as well as data from the first frame. This allows applications to accomplish most common scenarios without needing to instantiate a separate BitmapFrame.
Requirements
|
Minimum supported client | Windows 8 Release Preview |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
Build date: 5/22/2012
