1

我想在内存缓冲区上绘制一些文本,但不知道如何。请帮忙,非常感谢!代码:

 widht = 640;
 height = 480;
 pBuf = malloc( width * 3 * height );

 memset( pBuf, 0, width * 3 * height );

 //DrawText is the function that needs to be implemented, and I don't know how to do it.
 DrawText( "this is the text that i want to draw on the buffer", pBuf, width, height, 3 );

 //now there is text on the memory buffer pointed to by pBuf.
4

0 回答 0