Results 1 to 6 of 6

Thread: BitBlt Problem

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288

    Exclamation

    Is there any way to stop the borders that show up during an Image transfer using BitBlt. I am using two different Picture Boxes to tranfser images.

  2. #2
    Guest
    What do you mean by borders? Do you mean the borders of the PictureBox?

    If so, set the AutoRedraw to True.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Yes I did mean the frame of the PictureBox, But I was using StretchBlt to give a zoom out effect(sorry for the goof up). Setting the AutoRedraw property to TRUE made the Api call ineffective(StretchBlt). I solved the problem by using "CreateCompatibleDC" Api call instead of PictureBox.

    By the way, do you know of any other API which does the same thing as StrecthBlt, but doesnot distort the colors?

    Thanks

  4. #4
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    stretchblt doesnt distort colours..
    just make sure your last argument is vbSrcCopy if you want a straight copy - if it's anythign else the colours will change.
    buzzwords are the language of fools

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    The colors do not change dramatically but there is some color loss when the image is compressed significantly. I used vbSrcCopy, but it came as no help as I was using Constant SRCCOPY earlier.

  6. #6
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    they're the same thing
    dunno, wierd about sblt
    buzzwords are the language of fools

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