Is there an alternate API to StrechBlt? It seems to distort the colors on compressing the image.
Printable View
Is there an alternate API to StrechBlt? It seems to distort the colors on compressing the image.
You can try VB's PaintPicture method.
yeah but doesnt paintpicture call stretchtblt behind the scenes? :)
Surprisingly, PaintPicture does a much better job than StrecthBlt.
yeah but its slow n horrible
You can use the SetStretchBltMode API for smooth shrinking (DELETE_SCANS) or enlarging (HALFTONE).
Kenny: Awhile ago, Kedaman did some tests on this and PaintPicture proved to be faster.
NOTE: StretchBlt draws on DC's, whereas PaintPicture draws on StdPicture objects.
ok i withdraw whatever i said :)
Well, actually, I think StretchBlt is faster for drawing an image without any modification (in which case, you'd use BitBlt).
yeah, cos bitblt is just a straight memcopy if you use srccopy as the op.