Interface for image decoder factory. More...
#include <SImgDecoder-i.h>
Public Member Functions | |
long | AddRef () PURE |
Increment the reference count. | |
long | Release () PURE |
Decrement the reference count. | |
void | OnFinalRelease () PURE |
Final release of the object. | |
BOOL | CreateImgX (IImgX **ppImgDecoder) PURE |
Create an IImgX object. | |
HRESULT | SaveImage (BYTE *pBits, int nWid, int nHei, LPCWSTR pszFileName, const void *pFormat) SCONST PURE |
Save an image to a file with a specified format. | |
HRESULT | SaveImage2 (BYTE *pBits, int nWid, int nHei, LPCWSTR pszFileName, ImgFmt imgFmt) SCONST PURE |
Save an image to a file with a specified format. | |
LPCWSTR | GetDescription () SCONST PURE |
Get the description of the image decoder. | |
![]() | |
long | AddRef () PURE |
Increases the reference count. | |
long | Release () PURE |
Decreases the reference count. | |
void | OnFinalRelease () PURE |
Called when the reference count reaches zero and the object is about to be released. | |
Interface for image decoder factory.
This interface provides methods to create image decoders and save images in various formats.
Definition at line 140 of file SImgDecoder-i.h.
long IImgDecoderFactory::AddRef | ( | ) |
Increment the reference count.
BOOL IImgDecoderFactory::CreateImgX | ( | IImgX ** | ppImgDecoder | ) |
LPCWSTR IImgDecoderFactory::GetDescription | ( | ) |
Get the description of the image decoder.
long IImgDecoderFactory::Release | ( | ) |
Decrement the reference count.
HRESULT IImgDecoderFactory::SaveImage | ( | BYTE * | pBits, |
int | nWid, | ||
int | nHei, | ||
LPCWSTR | pszFileName, | ||
const void * | pFormat ) |
Save an image to a file with a specified format.
[in] | BYTE | *pBits - Pointer to the pixel data. |
[in] | int | nWid - Width of the image. |
[in] | int | nHei - Height of the image. |
[in] | LPCWSTR | pszFileName - File name (Unicode encoding). |
[in] | const | void *pFormat - Format-specific parameters. |
HRESULT IImgDecoderFactory::SaveImage2 | ( | BYTE * | pBits, |
int | nWid, | ||
int | nHei, | ||
LPCWSTR | pszFileName, | ||
ImgFmt | imgFmt ) |
Save an image to a file with a specified format.
[in] | BYTE | *pBits - Pointer to the pixel data. |
[in] | int | nWid - Width of the image. |
[in] | int | nHei - Height of the image. |
[in] | LPCWSTR | pszFileName - File name (Unicode encoding). |
[in] | ImgFmt | imgFmt - Image format. |