Click here to Skip to main content
15,915,065 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I can open and read 24 bit BMP file and convert to array .And i can send data to dot matrix, but Just i want an algorithm for this question.
Posted
Comments
Bernhard Hiller 15-Apr-14 9:01am    
I do not understand. Do you think of converting between the color models of RGB and CMYK?
kambiz madani 16-Apr-14 6:05am    
Hello Mr Hiller i do not want convert RGB to CMY . I have a dot matrix display that i Build with Microcontroller and some dot matrix driver .I want send a 24 bit RGB image with computer to this micro with RS232 port and display this image on dot matrix .
This dot matrix have tow colors for each pixel (Red & Green) and when tow color on per pixel is turn on, we have yellow color . I want convert RGB color to this method .
Thanks a lot

1 solution

When your display supports two base colors only, you have to loose information! With red and green available only, it is not at all possible to show blue. So: what do want to do with blue - omit it, show as red, as green, as a mixture of them?
Otherwise the problem is simple. Just iterate thru all the pixels of the original image, get their rgb values, and send red, green, and what you decided to do with blue, to the display.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900