Windows Phone 的 System.Drawing 和 System.Drawing.Imaging 替代方案 [英] System.Drawing and System.Drawing.Imaging alternatives for Windows Phone
本文介绍了Windows Phone 的 System.Drawing 和 System.Drawing.Imaging 替代方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用一些在 Windows Phone 中不起作用的 C# 片段,因为这些命名空间.Windows Phone 有没有 System.Drawing
和 System.Drawing.Imaging
的替代品?
I'm trying to use some C# snippets which doesn't work in Windows Phone, because of those namespaces.
Are there any alternatives to System.Drawing
and System.Drawing.Imaging
for windows phone?
我需要替换 PixelFormat
、Bitmap
、ColorPalette
、ImageLockMode
、LockBit
> 等等.
I need alternatives to PixelFormat
, Bitmap
, ColorPalette
, ImageLockMode
, LockBit
and so on.
一个例子:
BitmapData bmpDat = bmp.LockBits(
new Rectangle(
0,0, bmp.Width, bmp.Height),
ImageLockMode.ReadOnly, bmp.PixelFormat);
推荐答案
我从未尝试过,但我相信应该是一个不错的库.
I never tried it, but I believe should be a good library.
http://writeablebitmapex.codeplex.com/
祝你好运.
这篇关于Windows Phone 的 System.Drawing 和 System.Drawing.Imaging 替代方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文