soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
IImgX Interface Reference

Interface for image data. More...

#include <SImgDecoder-i.h>

Inheritance diagram for IImgX:
IObjRef

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.
 
IImgFrameGetFrame (UINT iFrame) PURE
 Get a specific frame of the image.
 
- Public Member Functions inherited from IObjRef
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.
 

Detailed Description

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.

Member Function Documentation

◆ AddRef()

long IImgX::AddRef ( )

Increment the reference count.

Returns
long - Current reference count.

◆ GetFrame()

IImgFrame * IImgX::GetFrame ( UINT iFrame)

Get a specific frame of the image.

Parameters
iFrame- Index of the frame to retrieve.
Returns
IImgFrame * - Pointer to the retrieved frame.

◆ GetFrameCount()

UINT IImgX::GetFrameCount ( )

Get the number of frames in the image.

Returns
UINT - Number of frames.

◆ LoadFromFileA()

int IImgX::LoadFromFileA ( LPCSTR pszFileName)

Load image data from a file (ANSI encoding).

Parameters
pszFileName- File name (ANSI encoding).
Returns
int - Result of the operation.

◆ LoadFromFileW()

int IImgX::LoadFromFileW ( LPCWSTR pszFileName)

Load image data from a file (Unicode encoding).

Parameters
pszFileName- File name (Unicode encoding).
Returns
int - Result of the operation.

◆ LoadFromMemory()

int IImgX::LoadFromMemory ( void * pBuf,
size_t bufLen )

Load image data from a memory buffer.

Parameters
pBuf- Pointer to the buffer containing image data.
bufLen- Size of the buffer.
Returns
int - Result of the operation.

◆ Release()

long IImgX::Release ( )

Decrement the reference count.

Returns
long - Current reference count.

The documentation for this interface was generated from the following file: