使用VB.net将灰度图像转换为RGB彩色图像 [英] Convert a grayscale image into rgb color image using VB.net

查看:179
本文介绍了使用VB.net将灰度图像转换为RGB彩色图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



使用VB.net将灰度图像转换为rgb彩色图像?

Hi,

Convert a grayscale image into rgb color image using VB.net?

推荐答案

这不是问题.除非是命令,否则它甚至不是句子.您想做的事情是不可能的,我想这就是为什么您甚至没有要求我们尝试之前就没有尝试过它的原因.如果您去除颜色,则无法将其放回原处.
This is not a question. It''s not even a sentence, unless it''s a command. What you want to do is impossible, I guess that''s why you didn''t even attempt it before asking us to do it. If you remove colour, you can''t put it back. It can''t be done.


将灰度图像转换为RGB具有2种含义:
1.仅在以下情况下才可能进行直接转换:生成的文件仍将包含灰色阴影,但是它们将以RGB像素存储
2.手动的用户辅助转换,艺术家将灰色图像的每个部分或像素添加到其中,并为其添加颜色.

第二个含义实际上不是编程问题,因为您需要人类用户(或人类级别的人工智能)来实现.

第一个含义是使用不同的工具非常容易,例如使用Microsoft图像对象(加载灰度,保存RGB)或常见的成像工具包(例如Leadtools)(ColorResolutionCommand类).
您可以在此处找到代码示例:
颜色分辨率命令
Converting grayscale images to RGB carries 2 meanings:
1. The direct conversion that is only possible in the sense that the resulting file will still contain gray shades, but they will be stored in RGB pixels
2. The manual user-assisted conversion where an artist takes every part or pixel of the gray image and adds color to it.

The second meaning is not really a programming question because you need a human user (or human-level artificial intelligence) to do it.

The first meaning is very easy using different tools, such as Microsoft image objects (load gray, save RGB) or common imaging toolkits like leadtools (ColorResolutionCommand class).
You can find a code sample here:
Color resolution command


这篇关于使用VB.net将灰度图像转换为RGB彩色图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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