how implement display of fullscreen on QVGA windows mobile when using GAPI

本文介绍了一种使用ExtEscape函数替代GXBeginDraw()函数的方法来获取绘图缓冲区。通过具体代码示例展示了如何利用ExtEscape函数获取RawFrameBufferInfo结构数据,并通过其成员pFramePointer获取绘图缓冲区指针。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

you can use the following codes instead of GXBeginDraw():

None.gifRawFrameBufferInfo rfbi;
None.gif
int hr = ExtEscape(hdc, GETRAWFRAMEBUFFER, 0, NULL, sizeof(RawFrameBufferInfo), (char *)fbi);
None.gif
None.gifg_pPaintBuffer 
= (BYTE*)rfbi.pFramePointer;
don't use GXBeginDraw() function to get drawing buffer. you should use ExtEscape function to get strcut data, and pFramePointer point is that you want to get drawing buffer point.
when you are ready to draw, you are careful to display Properties struct data. Because they are not fitful for the buffer point which you get through ExtEscape function, you should use data get by ExtEscape function.

Be careful  for data, maybe changed:
g_gxdp.cBPP     ,  rfbi.wBPP;
g_gxdp.cbxPitch      ,  rfbi.cxStride;
g_gxdp.cbyPitch      ,   rfbi.cyStride;
g_gxdp.cxWidth      ,  rfbi.cxPixels;
g_gxdp.cyHeight      ,  rfbi.cyPixels;
g_gxdp.ffFormat      ,   rfbi.wFormat;

转载于:https://www.cnblogs.com/JLMobile/archive/2006/04/17/377422.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值