Bitmap Pixel scaling
-
Hi, Iam writing some piece of texts into a moncochrome bitmap & then then copying it to the destination Dc by using a "BitBlt" function. Now when I perform some zooming,in the text,write to the bitmap & then read it back to the destination Dc,the Pixels are not scaled with good quality. Is there any Win32 ApI functions available,so that I can do some resampling of the image(text) stored in the bitmap , before writing it back.(Don't want to resize the bitmap size,know that there is a "StretchBlt function for that",but want to scale Pixels). Will it work if I increase the bitmap resolution,there by increasing the pixels & there by quality. If so how can I change a bitmap resolution Thanks...
-
Hi, Iam writing some piece of texts into a moncochrome bitmap & then then copying it to the destination Dc by using a "BitBlt" function. Now when I perform some zooming,in the text,write to the bitmap & then read it back to the destination Dc,the Pixels are not scaled with good quality. Is there any Win32 ApI functions available,so that I can do some resampling of the image(text) stored in the bitmap , before writing it back.(Don't want to resize the bitmap size,know that there is a "StretchBlt function for that",but want to scale Pixels). Will it work if I increase the bitmap resolution,there by increasing the pixels & there by quality. If so how can I change a bitmap resolution Thanks...
Look for the CxImage article here on CodeProject. It does decent scaling. -- An eye for an eye will only make the world blind.