|
-
Nov 22nd, 2000, 09:20 AM
#1
Thread Starter
PowerPoster
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.
-
Nov 22nd, 2000, 03:17 PM
#2
What do you mean by borders? Do you mean the borders of the PictureBox?
If so, set the AutoRedraw to True.
-
Nov 23rd, 2000, 08:42 AM
#3
Thread Starter
PowerPoster
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
-
Nov 23rd, 2000, 03:49 PM
#4
Hyperactive Member
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
-
Nov 24th, 2000, 02:39 AM
#5
Thread Starter
PowerPoster
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.
-
Nov 24th, 2000, 01:50 PM
#6
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|