「Xamarin.Mac/System.Drawing.ImageをNSImageに変換する」の版間の差分
| 34行目: | 34行目: | ||
using (var cg = CGImage.FromPNG(dp, null, false, CGColorRenderingIntent.Default)) | using (var cg = CGImage.FromPNG(dp, null, false, CGColorRenderingIntent.Default)) | ||
{ | { | ||
nsImage = NSImage(cg, new SizeF(cg.Width, cg.Height)); | nsImage = new NSImage(cg, new SizeF(cg.Width, cg.Height)); | ||
} | } | ||
} | } | ||