如何将 24 位颜色System.Drawing.Bitmap转换为索引(256 色)格式?我在计算调色板时遇到了麻烦。我可以遍历像素并使用 anint[]来包含各种颜色,但是当颜色超过 256 时就会出现问题。有没有办法转换为索引格式并从Bitmap.
System.Drawing.Bitmap
int[]
Bitmap
.net c# windows gdi+
.net ×1
c# ×1
gdi+ ×1
windows ×1