.NET Compact Framework上的System.Drawing.Imaging.ColorMap等价物

时间:2021-11-05 03:46:21

I have a need to use a ColorMap object in .NET Compact Framework but from what I can tell it is not available.

我需要在.NET Compact Framework中使用ColorMap对象,但据我所知,它不可用。

Need some ideas on how to best workaround this limitation.

需要一些关于如何最好地解决此限制的想法。

2 个解决方案

#1


it is discussed in msdn forum (it is not allowed for me to add links yet, but you can easily find it on the web) This class is not supported by the .net compact framework. Would suggest using manual recoloring instead or using Reflector to obtain a code of ColorMap from .net framework and use it your code.

它在msdn论坛中讨论(我不允许添加链接,但你可以在网上轻松找到它).net紧凑框架不支持这个类。建议使用手动重新着色或使用Reflector从.net框架获取ColorMap代码并使用它代码。

#2


The native IBitmapImage object does have a get/setpalette method, but I don't know if that's what you're looking for.

本机IBitmapImage对象确实有get / setpalette方法,但我不知道这是否是您正在寻找的。

see: http://msdn.microsoft.com/en-us/library/aa911323(v=MSDN.10).aspx

#1


it is discussed in msdn forum (it is not allowed for me to add links yet, but you can easily find it on the web) This class is not supported by the .net compact framework. Would suggest using manual recoloring instead or using Reflector to obtain a code of ColorMap from .net framework and use it your code.

它在msdn论坛中讨论(我不允许添加链接,但你可以在网上轻松找到它).net紧凑框架不支持这个类。建议使用手动重新着色或使用Reflector从.net框架获取ColorMap代码并使用它代码。

#2


The native IBitmapImage object does have a get/setpalette method, but I don't know if that's what you're looking for.

本机IBitmapImage对象确实有get / setpalette方法,但我不知道这是否是您正在寻找的。

see: http://msdn.microsoft.com/en-us/library/aa911323(v=MSDN.10).aspx