|
-
Mar 12th, 2002, 01:45 AM
#1
Thread Starter
Member
Problem with Stretchblt
I have a problem with stretchblt. i am trying to stretch a picture in one picture box to fit into another smaller picture box. the progeam works well on one system haveing windows xp. but does not work in systems working on windows 98. is there any system setting i should check? both are set at 1024 x 768 at 32 bit color depth.
i am desperate. please help.
sunithi
-
Mar 12th, 2002, 03:21 AM
#2
PowerPoster
Doesn't work?
At all?
Problems with colours?
Error message?
Give us a clue....
Gentile or Jew,
O you who turn the wheel and look to windward,
Consider Phlebas, who was once handsome and tall as you...
-
Mar 12th, 2002, 04:38 AM
#3
Fanatic Member
Using SetStretchBltMode with HALFTONE mode? If so:
HALFTONE
Maps pixels from the source rectangle into blocks of pixels in the destination rectangle. The average color over the destination block of pixels approximates the color of the source pixels.
After setting the HALFTONE stretching mode, an application must call the SetBrushOrgEx function to set the brush origin. If it fails to do so, brush misalignment occurs.
This option is not supported on Windows 95/98/Me.
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
Mar 12th, 2002, 05:08 AM
#4
Thread Starter
Member
Stretchblt does not work at all. only the blank background of the second picture box remains after the stretchblt operation.
i have set the autoredraw property to TRUE. is it right?
i am not using HALFTONE.
i am using the last parameter as VBSRCCOPY. Tried VBSRCAND and VBSRCPAINT. Nothing worked. only got a blank screen.
Please help.
Sunithi
-
Mar 12th, 2002, 05:09 AM
#5
Fanatic Member
Could you give us the code you are using?
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|