BCGSuite for MFC
CBCGPImage::CBCGPImage ( LPBYTE  lpBuffer,
UINT  nBufferSize,
BOOL  bScaleByDPI = FALSE,
BOOL  bAutoDestroy = TRUE 
)

Constructor. Creates an image from a memory buffer

Parameters
lpBufferA pointer to a memory buffer which contains SVG, PNG or BMP image.
nBufferSizeImage buffer size in bytes.
bScaleByDPISpecifies whether image should be automatically scaled according to current DPI.
bAutoDestroySpecifies whether the copy of buffer will be created and will be destroyed automatically when this object is being destroyed.