/*FUNCTION: FTCGetPixels, get buffer hold pixels.
PARAMETERS: bitmap
piX, piY, piW, piH, return value indicate the position and width for changed area compared to the previous frame
RETURN: buffer pointer, pixels are stored in RGB 24 bits, one bye one.No modification but just reading can be done to the buffer.
NOTICE: Buffer length can be calculated as: width*height*3, in bytes.
*/
const void* FTCGetPixels( BITMAP* bitmap, int* piX, int* piY, int* piW, int* piH );目标是将一幅图写入buffer,要如何实现,,讲讲想法和关键步骤也行,,最好有源代码,,谢谢先
PARAMETERS: bitmap
piX, piY, piW, piH, return value indicate the position and width for changed area compared to the previous frame
RETURN: buffer pointer, pixels are stored in RGB 24 bits, one bye one.No modification but just reading can be done to the buffer.
NOTICE: Buffer length can be calculated as: width*height*3, in bytes.
*/
const void* FTCGetPixels( BITMAP* bitmap, int* piX, int* piY, int* piW, int* piH );目标是将一幅图写入buffer,要如何实现,,讲讲想法和关键步骤也行,,最好有源代码,,谢谢先
有一个CXimage类,你可以参考参考
GetBitmap
GetBitmapBits
{}
const void* FTCGetPixels( BITMAP* bitmap, int* piX, int* piY, int* piW, int* piH
{
return bmp->bmBits;
}