Re: How to set dpi of an image

2009-05-21 Thread Graham Cox
On 22/05/2009, at 2:48 PM, Mahaboob wrote: I gone through that links and I can't figure it out how to set the dpi. By googling I found a function to set dpi in windows : public RenderTargetBitmap( int pixelWidth, int pixelHeight, double dpiX, double dpiY, PixelFormat pixelFo

Re: How to set dpi of an image

2009-05-21 Thread Mahaboob
I gone through that links and I can't figure it out how to set the dpi. By googling I found a function to set dpi in windows : public RenderTargetBitmap( int pixelWidth, int pixelHeight, double dpiX, double dpiY, PixelFormat pixelFormat ) Is there any equivalent method? Is it

Re: How to set dpi of an image

2009-05-21 Thread jonat...@mugginsoft.com
On 21 May 2009, at 08:29, Mahaboob wrote: I need to save the image with respect to the given dpi. I calculated the image size proportional to the dpi and saved it. But when I'm viewing the dpi from preview it shows only 72 dpi. I used the code like: float compressionFactor = [compressionSlide