来自图像VB.NET的配色方案 [英] color scheme from an image VB.NET

查看:161
本文介绍了来自图像VB.NET的配色方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我只是想知道是否有一种简单快捷的方法 从图像中获取配色方案?在搜索1:30小时后我没有在互联网上找到任何结果......我不是图形代码和这些东西的专家,但对于我的项目,该方法应该非常快,因为它必须得到30色不到2秒的30个不同图像(256x160像素)的方案...所以任何建议从哪里开始或如何计算颜色并从图像中提取它们?

Hi All, I'm just wondering if there is a simple and fast way to get color scheme from an image?? I didn't find any result on the internet after searching for 1:30 hour... I'm not expert at Graphics codes and these stuff, but for my project the method should be very fast because it will have to get 30 color schemes of 30 different images(256x160 pixels) just in under 2 sec... so any advise where to start or how to calculate colors and extract them from an image??

推荐答案

在WPF中,BitmapSource有一个调色板 [ ^ ]属性,但请注意并非所有图像格式都有调色板。只有索引(如tiff,gif和某种位图)格式有调色板,对于其他格式,您必须扫描图像像素并从那里收集颜色信息......
In WPF, BitmapSource has a Palette[^] property, however consider that not all image formats has palette. Only indexed (like tiff, gif and some kind of bitmap) formats has palette, for other formats you have to scan the image pixels and gather the color information from there...


这篇关于来自图像VB.NET的配色方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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