[Excerpt] Copy of brew's screen

Source: Internet
Author: User

Http://blog.csdn.net/chenmeimei_8899/archive/2010/06/02/5640357.aspx

1.First obtain the current device bitmap:

Idisplay_getdevicebitmap (idisplay * Po, ibitmap ** ppibitmap)

* PpibitmapIs the output device bitmap

2. Creates a bitmap in the same format as the device bitmap. Brew This is mainly about the color depth. The default value is 565 , The so-called 565 Yes RGB Items   The number of digits that the color value occupies.

Ibitmap_createcompatiblebitmap (ibitmap * Po, ibitmap ** ppibitmap, uint16 W, uint16 H)

3Copy the data from the device bitmap to the new bitmap.

 
Ibitmap_bltin (ibitmap * Po,
 
Int xdst,
Int ydst,
 
Int dx,
Int dy,
 
Ibitmap* Psrc,
Int xsrc,
 
Int ysrc,
AeerasteropROP)
 
The entire Screen Copy process is complete.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.