How to capture screen to bitmap如何实现截屏(Symbian)
2007-11-22 14:51
736 查看
How to capture screen to bitmap
From Forum Nokia Wiki
Capturing screen to in-memory bitmap is extremely easy. All you need is to create a bitmap instance with appropriate size
CWsScreenDevice* screenDev = CCoeEnv::Static()->ScreenDevice();
CFbsBitmap* bitmap = new (ELeave) CFbsBitmap;
CleanupStack::PushL( bitmap );
User::LeaveIfError( bitmap->Create( screenDev->SizeInPixels(),
screenDev->DisplayMode() ) );
and then copy screen content into it as follows
User::LeaveIfError( screenDev->CopyScreenToBitmap( bitmap ) );
// use bitmap as appropriate, for example save it to file
CleanupStack::PopAndDestroy( bitmap );
This code links against fbscli.lib and ws32.lib
转载自: http://wiki.forum.nokia.com/index.php/How_to_capture_screen_to_bitmap
From Forum Nokia Wiki
Capturing screen to in-memory bitmap is extremely easy. All you need is to create a bitmap instance with appropriate size
CWsScreenDevice* screenDev = CCoeEnv::Static()->ScreenDevice();
CFbsBitmap* bitmap = new (ELeave) CFbsBitmap;
CleanupStack::PushL( bitmap );
User::LeaveIfError( bitmap->Create( screenDev->SizeInPixels(),
screenDev->DisplayMode() ) );
and then copy screen content into it as follows
User::LeaveIfError( screenDev->CopyScreenToBitmap( bitmap ) );
// use bitmap as appropriate, for example save it to file
CleanupStack::PopAndDestroy( bitmap );
This code links against fbscli.lib and ws32.lib
转载自: http://wiki.forum.nokia.com/index.php/How_to_capture_screen_to_bitmap
相关文章推荐
- Android: How to Capture Screen in Gingerbread(2.3中实现截屏)
- Android: (2.3中实现截屏How to Capture Screen in Gingerbread)
- Android: How to Capture Screen in Gingerbread(2.3中实现截屏)
- Android: How to Capture Screen in Gingerbread(2.3中实现截屏)(续)
- Android: How to Capture Screen in Gingerbread(2.3中实现截屏)
- Android: How to Capture Screen in Gingerbread(2.3中实现截屏)(续)
- Android: How to Capture Screen in Gingerbread(2.3中实现截屏) .
- How to read images to Symbian bitmap
- 【原创】SharePoint2010的SaveButton如何实现在跳转前给用户以提示[How to implement SaveButton display an alert when Redirect action]
- LightSwitch how to realize two combobox linkage(如何实现2个下拉框联动)
- 如何实现标准TCODE的屏幕增强(HOWTO:Implement a screen exit to a standard SAP transaction)
- 如何在ArcGlobe中实现zoomtolayer (How to zoom to layer in globe)
- [HOWTO]ORACLE中如何实现ASC字符串和16进制串互相转换
- 如何在ArcGlobe中实现zoomtolayer (How to zoom to layer in globe)
- how to make qq can't run useing TL-r402 soho router(如何用TL-r402路由器实现简单的qq封锁)
- How to draw bitmap on the form - 如何在窗体上画(贴)位图
- How to send mail by EMS - 如何实现邮件特快专递
- How to Use HTML5 FUll Screen API(如何使用HTML5全屏接口)
- [转]如何分屏幕(How to split the Screen)
- 如何实现一个搜索引擎(2):查询索引 How to Implement a Search Engine Part 2: Query Index