Guest User

Untitled

a guest
May 20th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Bitmap img(xxx);
  2. Graphics gr(&img);
  3. HDC dc = gr.GetHDC();
  4. ::StretchDIBits(
  5. dc,
  6. rec.left, rec.top,
  7. (rec.right - rec.left), (rec.bottom - rec.top),
  8. m_recRegin.left , m_recRegin.top,
  9. m_recRegin.right - m_recRegin.left, m_recRegin.bottom - m_recRegin.top,
  10. XXX, XXX, DIB_RGB_COLORS, SRCCOPY);
  11. gr.ReleaseHDC(dc);
  12.  
  13. ::StretchDIBits(dc,rec.left, rec.top,(rec.right - rec.left), (rec.bottom - rec.top),
  14. m_recRegin.left , m_recRegin.top,
  15. (m_recRegin.right - m_recRegin.left),(m_recRegin.bottom - m_recRegin.top),XXX,&bmp,DIB_RGB_COLORS, SRCCOPY);
Add Comment
Please, Sign In to add comment