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.
Printable View
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.
What do you mean by borders? Do you mean the borders of the PictureBox?
If so, set the AutoRedraw to True.
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
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.
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.
they're the same thing :)
dunno, wierd about sblt