Click to See Complete Forum and Search --> : increasing resolution of exported bitmaps
dumbquestion
February 28th, 2005, 01:48 PM
Hi. I've written some code in VC++ .NET to BitBlt a region of a form to a bitmap. I can save it using the Save method of the Bitmap class, but the saved image looks blurry, and lines within them look a bit smeared. I've tried saving using the Bmp, Jpeg, Gif, and Tiff formats of the ImageFormat class, but they all look blurry. Does anyone know a way to increase the resolution of the exported images so that they match what you see on your screen in the original image? Thanks!
Leo77
March 1st, 2005, 02:18 PM
I gess the problem is in your program... to increase the resolution you should at least use some linear interpolation to find the pixels you "dont have".
The quality never will be perfect to increase resolution....
ps: just an additional information... to decrease resolution you can use mipmap
hope I could help
Elementer
March 1st, 2005, 03:05 PM
Hi,
as Leo77 say, you have problem in your code, because is impossible that an image that you watch, is good and after when you save it, became damaged. Maybe you specify pixel type or similar things wrong. (I think)
If you want increase the image resolution or quality, you must manipulate the pixels by yourself, I think there aren't function to achieve this, maybe PhotoShop source code that you have not :D
Leo77 is true, linear interpolation is good start to increase the image quality, but with linear interpolation you must also increase the image size...
Regards ;)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.