Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I would like to crop the image which on picture control.
Thanks in advanced.
Posted

1 solution

Cropping can be implemented by setting window region of the PictureControl.
Please identify region for cropping by tracking LButtonDown and LButtonUp messages.
Then set window region of the PictureControl
C++
  CRgn clipregion;
clipregion.CreateRectRgn( left, top,  right, bottom ); // Prepare clip region.
pPictureControl->SetWindowRgn(clipregion, TRUE);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900