anyKode Marilou
ContentsIndexHome
PreviousUpNext
Image::ConstructFromBufferToX8R8G8B8

Initialize current instance from a buffer.

C++
bool ConstructFromBufferToX8R8G8B8(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] Source pixels format 
void * pBuffer 
[in] Pointer on the source image pixels 
int BufferBytesCount 
[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 from parameters. If the parameter is not a native X8R8G8B8 format, the image is converted.

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