Interface for image data. 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. | |
int | LoadFromMemory (void *pBuf, size_t bufLen) PURE |
Load image data from a memory buffer. | |
int | LoadFromFileW (LPCWSTR pszFileName) PURE |
Load image data from a file (Unicode encoding). | |
int | LoadFromFileA (LPCSTR pszFileName) PURE |
Load image data from a file (ANSI encoding). | |
UINT | GetFrameCount () PURE |
Get the number of frames in the image. | |
IImgFrame * | GetFrame (UINT iFrame) PURE |
Get a specific frame of the image. | |
![]() | |
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 data.
This interface represents the image data, which can contain multiple frames for animated images.
Definition at line 60 of file SImgDecoder-i.h.
long IImgX::AddRef | ( | ) |
Increment the reference count.
IImgFrame * IImgX::GetFrame | ( | UINT | iFrame | ) |
Get a specific frame of the image.
iFrame | - Index of the frame to retrieve. |
UINT IImgX::GetFrameCount | ( | ) |
Get the number of frames in the image.
int IImgX::LoadFromFileA | ( | LPCSTR | pszFileName | ) |
Load image data from a file (ANSI encoding).
pszFileName | - File name (ANSI encoding). |
int IImgX::LoadFromFileW | ( | LPCWSTR | pszFileName | ) |
Load image data from a file (Unicode encoding).
pszFileName | - File name (Unicode encoding). |
int IImgX::LoadFromMemory | ( | void * | pBuf, |
size_t | bufLen ) |
Load image data from a memory buffer.
pBuf | - Pointer to the buffer containing image data. |
bufLen | - Size of the buffer. |
long IImgX::Release | ( | ) |
Decrement the reference count.