locked
Why the bitmapdecoder DPIX, DPIY value is always 96?

    Question

  • Hi,

    I am converting the PNG file to JPG file using bitmapdecoder for PNG and bitmapencoder for JPG like below.

    bitmapEncoder.SetPixelData(bitmapDecoder.BitmapPixelFormat, bitmapDecoder.BitmapAlphaMode, bitmapDecoder.PixelWidth, bitmapDecoder.PixelHeight, bitmapDecoder.DpiX, bitmapDecoder.DpiY, pixelDataProvider.DetachPixelData());

    I have a PNG file with 300x300dpi,when I debug and see the value of bitmapDecoder.DpiX, bitmapDecoder.Dpiy, it is always 96 dpi. Why?.

    Regards,

    Ashok

    Tuesday, February 3, 2015 8:26 AM

Answers

All replies