![](/img/trans.png)
[英]using System.Drawing.Imaging; Imaging does not exist in the System.Drawing
[英]System.Drawing and System.Drawing.Imaging alternatives for Windows Phone
我正在嘗試使用一些C#代碼段,由於這些名稱空間,它們在Windows Phone中不起作用。 Windows Phone是否可以替代System.Drawing
和System.Drawing.Imaging
?
我需要替代PixelFormat
, Bitmap
, ColorPalette
, ImageLockMode
, LockBit
等。
一個例子:
BitmapData bmpDat = bmp.LockBits(
new Rectangle(
0,0, bmp.Width, bmp.Height),
ImageLockMode.ReadOnly, bmp.PixelFormat);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.