I am trying to convert picture(JPEG , BitmapFrame) into the byte array of pixels and later to construct it back with the help of BitmapSource.Create. I am astonished becouse the same code works perfect for some pictures and fail to other. The ONLY difference i found – that at problem pictures
pic.PixelHeight != pic.Height and pic.PixelWidth != pic.Width. But I thought there is no problem.
Could any one help me?
I am trying to convert picture(JPEG , BitmapFrame) into the byte array of pixels
Share
Your problem could be due to the comparison between two different types.
PixelHeightis aInt32andHeightis aDouble.pixelsand1/96thinch might be a problem.