Results 1 to 6 of 6

Thread: StretchBlt and picturebox

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    48

    StretchBlt and picturebox

    Hey, I take a screen shot of my desktop and use stretchblt to put it in a very small picture box so I can save it small (instead of the 1.4mb that is created).

    Now I need to open up this small bmp and resize it to be full again. I have tried stretchblt and paintpicture to a new picture box, but the image is real distorted. It does increase the size, but looks awful.

    Does anyone know of a way to do this?

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    I think on www.ur.co.nz is a tutorial on how to properly resize images.
    Sanity is a full time job

    Puh das war harter Stoff!

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    48
    thanks, but that isn't what I am looking for.

  4. #4
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    Once you have shrunken your image you can't get the original image back, you will lose pixels in the process. You can use a better algorithm to resize to full size again, but it will never look as good as the original...

    Try using another way to save the file, like JPG or PNG. JPG is easier since there is a nice DLL floating around the web, although JPG still loses some image quality, depending on the settings... PNG is better, it's a lossless compression, but that means that if you don't use some palette optimization or other tricks (like JPG does) it will be somewhat larger than JPG...
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

  5. #5

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    48
    Ok, thanks. I just thought if you stretchblt a bitmap, you could resize it again to its original self, but I guess its not possible.

    How do remote control programs work then? Even if they save as a smaller file, still seems over an internet connection it would be very slow. IE gotomypc.com works really well via 56k modem line. How is that possible without smaller files?

  6. #6
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    like I said, compression
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

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