Browse Source

Fix swap of width/height in D2D Bitmap.

Fixes #218.
Steven Kirk 10 years ago
parent
commit
b652138d0d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Windows/Perspex.Direct2D1/Media/Imaging/BitmapImpl.cs

+ 2 - 2
src/Windows/Perspex.Direct2D1/Media/Imaging/BitmapImpl.cs

@@ -67,12 +67,12 @@ namespace Perspex.Direct2D1.Media
         /// <summary>
         /// Gets the width of the bitmap, in pixels.
         /// </summary>
-        public int PixelWidth => WicImpl.Size.Height;
+        public int PixelWidth => WicImpl.Size.Width;
 
         /// <summary>
         /// Gets the height of the bitmap, in pixels.
         /// </summary>
-        public int PixelHeight => WicImpl.Size.Width;
+        public int PixelHeight => WicImpl.Size.Height;
 
         /// <summary>
         /// Gets the WIC implementation of the bitmap.