|
//Copyright (c) Microsoft Corporation. All rights reserved.
#pragma once
#include "DirectUnknown.h"
#include "WICBitmapFrameDecode.h"
using namespace System;
namespace Microsoft { namespace WindowsAPICodePack { namespace DirectX { namespace WindowsImagingComponent {
/// <summary>
/// Exposes methods that represent a decoder. Provides access to a decoder's frames.
/// <para>(Also see IWICBitmapDecoder interface)</para>
/// </summary>
public ref class BitmapDecoder : public DirectUnknown
{
public:
/// <summary>
/// The total number of frames in the image.
/// </summary>
property unsigned int FrameCount
{
unsigned int get();
}
/// <summary>
/// Retrieves the specified frame of the image.
/// </summary>
/// <param name="index">The particular frame to retrieve.</param>
BitmapFrameDecode^ GetFrame( unsigned int index );
internal:
BitmapDecoder()
{ }
BitmapDecoder(IWICBitmapDecoder* pNativeIWICBitmapDecoder) : DirectUnknown(pNativeIWICBitmapDecoder)
{ }
};
} } } }
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
John graduated from the University of South Australia in 1997 with a Bachelor of Electronic Engineering Degree, and since then he has worked on hardware and software in many fields including Aerospace, Defence, and Medical giving him over 10 of years experience in C++ and C# programming. In 2009 John Started his own contracting company doing business between Taiwan and Australia.