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

Interface for image decoder factory. More...

#include <SImgDecoder-i.h>

Inheritance diagram for IImgDecoderFactory:
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.
 
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.
 
- 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 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.

Member Function Documentation

◆ AddRef()

long IImgDecoderFactory::AddRef ( )

Increment the reference count.

Returns
long - Current reference count.

◆ CreateImgX()

BOOL IImgDecoderFactory::CreateImgX ( IImgX ** ppImgDecoder)

Create an IImgX object.

Parameters
[out]IImgX**ppImgDecoder - Pointer to store the created IImgX object.
Returns
BOOL - TRUE if successful, FALSE otherwise.

◆ GetDescription()

LPCWSTR IImgDecoderFactory::GetDescription ( )

Get the description of the image decoder.

Returns
LPCWSTR - Description of the image decoder.

◆ Release()

long IImgDecoderFactory::Release ( )

Decrement the reference count.

Returns
long - Current reference count.

◆ SaveImage()

HRESULT IImgDecoderFactory::SaveImage ( BYTE * pBits,
int nWid,
int nHei,
LPCWSTR pszFileName,
const void * pFormat )

Save an image to a file with a specified format.

Parameters
[in]BYTE*pBits - Pointer to the pixel data.
[in]intnWid - Width of the image.
[in]intnHei - Height of the image.
[in]LPCWSTRpszFileName - File name (Unicode encoding).
[in]constvoid *pFormat - Format-specific parameters.
Returns
HRESULT - Result of the operation.

◆ SaveImage2()

HRESULT IImgDecoderFactory::SaveImage2 ( BYTE * pBits,
int nWid,
int nHei,
LPCWSTR pszFileName,
ImgFmt imgFmt )

Save an image to a file with a specified format.

Parameters
[in]BYTE*pBits - Pointer to the pixel data.
[in]intnWid - Width of the image.
[in]intnHei - Height of the image.
[in]LPCWSTRpszFileName - File name (Unicode encoding).
[in]ImgFmtimgFmt - Image format.
Returns
HRESULT - Result of the operation.

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