Results 1 to 5 of 5

Thread: Cutting Image

  1. #1

    Thread Starter
    Junior Member henrie.cuijpers's Avatar
    Join Date
    Aug 2001
    Location
    Noord-Brabant - The Netherlands
    Posts
    31

    Cutting Image

    I have a picturebox filled with an image
    now i want to cut a part out of the image to save it.

    How can i cut, say the middle part from 100x100 out off the image.......

  2. #2
    Member anjulpa's Avatar
    Join Date
    Aug 2001
    Location
    india
    Posts
    43
    bitblt the selected area to an invisible picbox with autoredraw set to true. resize the invisible pbox and then use following
    Code:
    sub savepic()
    pinvisible.visible=false
    pinvisible.autoredraw=true
    bitblt pbox.hdc,startx,starty,100,100,pinvisible.hdc,vbsrccopy
    pinvisible.move pinvisible.left,pinvisible.top,100,100
    pinvisible.picture=pinvisible.image
    savepicture pinvisible.picture,"c:\1.bmp"
    end sub

    ppl saw this
    Die, ***** Die !

  3. #3

    Thread Starter
    Junior Member henrie.cuijpers's Avatar
    Join Date
    Aug 2001
    Location
    Noord-Brabant - The Netherlands
    Posts
    31

    oops

    sorry, i found the pictureclip ocx works fine too
    thx for helping

  4. #4
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485
    Just found it too! 3 Questions:

    1. Does this work on all Platforms '98','2000','xp','nt'?
    2. How do I use it (got an example?)
    3. Can it do irregular cuts too?

    Thanks in advance

  5. #5
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    If you have MSDN you can search for it there. They have a tutorial on it. And and source code.....

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