Results 1 to 20 of 20

Thread: Image crop with GDI+

Threaded View

  1. #2
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,897

    Re: Image crop

    Reasonably easy to do in RC6 & Cairo (if you're willing to use it) because it can do a lot of the math for you converting between device and image coordinates.

    Here's a quick example project I made (comments by Gemini, edited by me). I'm sure Olaf could do it even more efficiently if he happens by and has time to provide an even tighter sample (there is a cControlPoint class in RC6 that I haven't had a chance to try yet that might make it possible to remove all the HitTest a Resize Handle stuff in my demo)

    Name:  2025-04-18_18-09-56.jpg
Views: 523
Size:  16.4 KB


    SOURCE CODE: ImageSel.zip
    Last edited by jpbro; Apr 18th, 2025 at 05:20 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width