anyKode Marilou
ContentsIndexHome
PreviousUpNext
Image::ConstructFromBuffer

Initialize current instance from a buffer.

C++
bool ConstructFromBuffer(int Width, int Height, Marilou::Commons::SurfaceFormats Format, void * pBuffer, int BufferBytesCount);
Parameters 
Description 
int Width 
[in] Image width (pixels) 
int Height 
[in] Image Height (pixels) 
Marilou::Commons::SurfaceFormats Format 
[in] Pixels format 
void * pBuffer 
[in] Pointer on the image pixels 
BufferByteCount 
[in] Size in bytes of pBuffer 

true if the object is initialized and that the image is valid, false otherwise.

ConstructFromBuffer initializes the current instance by creating a copy of the image passed in parameters. This function is particularly practical when the image results from a file loaded in memory for example.

Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!