public static void SetResolution(this IWICBitmap bitmap, Resolution resolution) { bitmap.SetResolution(resolution.DpiX, resolution.DpiY); }