转换为位图索引中的PixelFormat C# [英] Converting to indexed Bitmap PixelFormat in C#

查看:582
本文介绍了转换为位图索引中的PixelFormat C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是从非索引像素格式的位图转换为索引的格式在C#中的最佳方法是什么?

What is the best way to convert from a non-indexed pixel format bitmap to an indexed format in C# ?

推荐答案

伟大的工作,快捷,使用P我/调用,让GDI处理它(它可以做的工作,但.NET API不公开它的一些奇怪的原因)。

This worked great and fast for me using P/Invoke to let GDI handle it (it can do the job, but the .Net API doesn't expose it for some weird reasons).

这篇关于转换为位图索引中的PixelFormat C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆