CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Image crop

  1. #1
    Join Date
    Jun 2010
    Posts
    115

    Arrow Image crop

    I have an image saved in CImage,

    I'd like to get from that saved CImage a cropped part defined by input CRect


    Thank you

  2. #2
    Join Date
    Feb 2005
    Posts
    2,160

    Re: Image crop

    Look at CImage::BitBlt()

    http://msdn.microsoft.com/en-us/libr...6z(VS.71).aspx

    Create a new CImage with the same parameters and BitBlt one to the other.

  3. #3
    Join Date
    Jun 2010
    Posts
    115

    Re: Image crop

    Quote Originally Posted by hoxsiew View Post
    Look at CImage::BitBlt()

    http://msdn.microsoft.com/en-us/libr...6z(VS.71).aspx

    Create a new CImage with the same parameters and BitBlt one to the other.
    Thanks,

    I attach some of my code and an error while executing the program
    I don\t know why, the code shows correct data passed in (no NULL/odd values) during debug
    The pop up message appears when the debug runs into predefined source code
    Attached Images Attached Images
    Attached Files Attached Files

  4. #4
    Join Date
    Jun 2010
    Posts
    115

    Re: Image crop

    ???????????????????????//

  5. #5
    Join Date
    Feb 2005
    Posts
    2,160

    Re: Image crop

    What is CImageDC?

  6. #6
    Join Date
    Jan 2011
    Posts
    1

    Re: Image crop

    if you want crop any image, than i will suggest you to visit the link below
    http://www.raiseitsolutions.com/foru...ic.php?f=4&t=2
    if you visit this link, you will know how to crop an image easily
    thank you very much.

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

Featured