如何在内存缓冲区上绘制文本

时间:2012-07-24 09:50:16

标签: winapi window

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

 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.

0 个答案:

没有答案