public void SetResolution(float xDpi, float yDpi) { int status = Gdip.GdipBitmapSetResolution(new HandleRef(this, nativeImage), xDpi, yDpi); Gdip.CheckStatus(status); }