/// <include file='doc\Bitmap.uex' path='docs/doc[@for="Bitmap.SetResolution"]/*' /> /// <devdoc> /// Sets the resolution for this <see cref='System.Drawing.Bitmap'/>. /// </devdoc> public void SetResolution(float xDpi, float yDpi) { int status = SafeNativeMethods.GdipBitmapSetResolution(new HandleRef(this, nativeImage), xDpi, yDpi); if (status != SafeNativeMethods.Ok) { throw SafeNativeMethods.StatusException(status); } }