Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Perl VB.NET
Hi,
 
Convert a grayscale image into rgb color image using VB.net?
Posted 5-Aug-12 20:53pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
0 OriginalGriff 520
1 Maciej Los 290
2 Richard MacCutchan 265
3 BillWoodruff 265
4 Suraj Sahoo | Coding Passion 155
0 OriginalGriff 8,764
1 Sergey Alexandrovich Kryukov 7,437
2 DamithSL 5,639
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web04 | 2.8.1411028.1 | Last Updated 16 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100