$ 0 0 If you only want to change the DPI you should use the Density property. Your method signature has a width/height and not a DPI. Are you sure you only want to set the DPI of the image?