soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SResLoadFromMemory Class Reference

Utility class for loading resources from memory. More...

#include <SResProvider.h>

Static Public Member Functions

static IBitmapSLoadImage (LPVOID pBuf, size_t size)
 Loads an image from a memory buffer.
 
static IImgXLoadImgX (LPVOID pBuf, size_t size)
 Loads an image from a memory buffer as an IImgX object.
 

Detailed Description

Utility class for loading resources from memory.

Definition at line 20 of file SResProvider.h.

Member Function Documentation

◆ LoadImage()

IBitmapS * SResLoadFromMemory::LoadImage ( LPVOID pBuf,
size_t size )
static

Loads an image from a memory buffer.

Parameters
pBufPointer to the memory buffer containing the image data.
sizeSize of the memory buffer.
Returns
Pointer to the loaded IBitmapS object, or nullptr if loading fails.

Definition at line 22 of file SResProvider.cpp.

◆ LoadImgX()

IImgX * SResLoadFromMemory::LoadImgX ( LPVOID pBuf,
size_t size )
static

Loads an image from a memory buffer as an IImgX object.

Parameters
pBufPointer to the memory buffer containing the image data.
sizeSize of the memory buffer.
Returns
Pointer to the loaded IImgX object, or nullptr if loading fails.

Definition at line 39 of file SResProvider.cpp.


The documentation for this class was generated from the following files: