Thanks for the response...
I Think I've almost got it,
if( dbMemblockExist( webMemblock ) ) dbDeleteMemblock( webMemblock );
dbMakeMemblock( webMemblock, (Width_ * Height_ * 4) + 12 ); //The extra 12 is for thr image header information
dbWriteMemblockByte( webMemblock, 0, Width_ ); //Image Width
dbWriteMemblockByte( webMemblock, 4, Height_ ); //Image Height
dbWriteMemblockByte( webMemblock, 8, 4 ); //Image Depth
char* mem_block_ptr = (char*)dbGetMemblockPtr( webMemblock );
memcpy( mem_block_ptr + 12, webBuffer, Width_ * Height_ * 4 ); //copy the memory starting at an offset of 12
if( dbImageExist(webImage) ) dbDeleteImage(webImage);
dbMakeImageFromMemblock( webImage, webMemblock ); //Make the image
dbPasteImage( webImage, X_, Y_ ); //Paste the image
Thats what I'm using, but all I get is a white square
any ideas?
EDIT:
Think I Know The Problem, I'm in a RGBA format, and the makeimagefrommemblock wants it in a ARGB format?
Yours
N3wton