Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

72 dpi bitamp

Hello everybody,
I want to make 72 dpi bitmap file. Can anybody suggest me how can I do it?
Thanks in advance.
[128 byte] By [chiragkapadiya] at [2007-11-11 10:21:30]
# 1 Re: 72 dpi bitamp
Hi,
that's something you *CAN NOT* do.
All you can do is create a bitmap and display it on a 72 dpi (dots per inch) device.
Any bitmap that is displayed on such a device could of course be called a "72 dpi
bitmap", but it doesn't make sense.
That is unless your dpi is an acronym for something else?
It would be helpful to know what you are trying to achieve.
Cheers,
D
drkybelk at 2007-11-11 20:59:00 >
# 2 Re: 72 dpi bitamp
well, you *can* use 72 pixels per inch as a base scale factor when you create the image, so that when you pop it onto the display one pixel is one pixel (if the graphics mode, card, and monitor all agree, which means on some small % of the existing computers youll get what your looking for ??)
jonnin at 2007-11-11 21:00:05 >
# 3 Re: 72 dpi bitamp
I think he meant a resolution of 72 DPI, which is what a scanner can use when scanning an image to a file. Obviously, the actual DPI will depend on the device that displays the image but the resolution is at least 72 DPI.
Danny at 2007-11-11 21:01:04 >
# 4 Re: 72 dpi bitamp
Dear all,

Actually I want to develop device independant 24-bits 72 dpi bitmap file into memory. Please help me for that.

Regards,
Chirag.
chiragkapadiya at 2007-11-11 21:02:10 >
# 5 Re: 72 dpi bitamp
You have to know the dimension of the image you are creating in inches, then simply interpolate to stretch it to 72 pixels per inch. There are several algorithms for image resize - I think bicubic is the one most use by default (?).
jonnin at 2007-11-11 21:03:09 >