简体   繁体   English

Windows Phone的System.Drawing和System.Drawing.Imaging替代方案

[英]System.Drawing and System.Drawing.Imaging alternatives for Windows Phone

I'm trying to use some C# snippets which doesn't work in Windows Phone, because of those namespaces. 我正在尝试使用一些C#代码段,由于这些名称空间,它们在Windows Phone中不起作用。 Are there any alternatives to System.Drawing and System.Drawing.Imaging for windows phone? Windows Phone是否可以替代System.DrawingSystem.Drawing.Imaging

I need alternatives to PixelFormat , Bitmap , ColorPalette , ImageLockMode , LockBit and so on. 我需要替代PixelFormatBitmapColorPaletteImageLockModeLockBit等。


an example: 一个例子:

    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/ http://writeablebitmapex.codeplex.com/

Good luck. 祝好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM