How to Use the render () function in ipicture

Source: Internet
Author: User
  1. How to Use the render () function in ipicture
  2. What do the Chinese meanings of the parameters of this function mean? This is described in msdn.
  3. Hresult render (
  4. HDC, // handle of device context on which to render the image
  5. Long X, // horizontal position of image in HDC
  6. Long y, // vertical position of image in HDC
  7. Long CX, // horizontal dimension of destination rectangle
  8. Long cy, // vertical dimension of destination rectangle
  9. Ole_xpos_himetric xsrc, // horizontal offset in source picture
  10. Ole_ypos_himetric ysrc, // vertical offset in source picture
  11. Ole_xsize_himetric cxsrc, // amount to copy horizontally in source picture
  12. Ole_ysize_himetric cysrc, // amount to copy vertically in source picture
  13. Lpcrect prcwbounds // pointer to position of destination for a Metafile HDC
  14. );
  15. This function displays part of a large picture.
  16. HDC: Needless to say
  17. X and Y are the start points of the horizontal and vertical coordinates of HDC, CX and Cy are the end points, that is, a rectangle is drawn on HDC, XY is the coordinate of the upper left corner, and cxcy is the coordinate of the lower right corner.
  18. Xsrc, ysrc, cxsrc, and cysrc are the coordinates of the Left and bottom right sides of the rectangle, indicating the part to be displayed on HDC in this big picture.
  19. Extract the xsrc, ysrc, cxsrc, and cysrc parts from the SRC diagram and paste them on the X, Y, CX, and Cy areas.

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.