Browse Source

Fixed build

pull/517/head
Nikita Tsukanov 11 years ago
parent
commit
ad6805f860
  1. 3
      src/Skia/Perspex.Skia/BitmapImpl.cs

3
src/Skia/Perspex.Skia/BitmapImpl.cs

@ -1,6 +1,5 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Drawing.Imaging;
using System.IO; using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Text; using System.Text;
@ -38,7 +37,7 @@ namespace Perspex.Skia
#if DESKTOP #if DESKTOP
IntPtr length; IntPtr length;
using (var sdb = new System.Drawing.Bitmap(PixelWidth, PixelHeight, Bitmap.RowBytes, using (var sdb = new System.Drawing.Bitmap(PixelWidth, PixelHeight, Bitmap.RowBytes,
PixelFormat.Format32bppArgb, Bitmap.GetPixels(out length))) System.Drawing.Imaging.PixelFormat.Format32bppArgb, Bitmap.GetPixels(out length)))
sdb.Save(fileName); sdb.Save(fileName);
#else #else
//SkiaSharp doesn't expose image encoders yet //SkiaSharp doesn't expose image encoders yet

Loading…
Cancel
Save