Click here to Skip to main content
Sign Up to vote bad
good
See more: C#PerlVB.NET
Hi,
 
Convert a grayscale image into rgb color image using VB.net?
Posted 5 Aug '12 - 19:53


2 solutions

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.
  Permalink  
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
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 296
1 Mohammed Hameed 183
2 Sergey Alexandrovich Kryukov 143
3 Santhosh G_ 108
4 Mayur_Panchal 98
0 Sergey Alexandrovich Kryukov 8,216
1 OriginalGriff 6,271
2 CPallini 3,528
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 16 Aug 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid