You are here:

C++/Change the color format.

Advertisement


Question
Now I am working on a Graphical interface application consist with different type of objects. I used visual c++ 6.

I need to give options to users to change those objects in differents color formats. (RGB, CMYK AND Gray Scale)

eg:Converting a RGB color to a CMYK color.
converting CMYK to Gray Scale model like wise.

Also I need to get CMYK color pallets.  How I change the color schems and get different color palets.

Answer
sameera, Thank you for your question.

Windows GDI does not support any color model other than RGB. GDI is a base technology not intended to serve all purposes.

I believe you will either have to write CMYK separation functions yourself, or buy them as an API library.

I suggest that you post this question at www.experts-exchange.com, which is more advanced than allexperts.com.

David Spector

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


David Spector

Expertise

Highly knowledgeable in the C++ language, Visual C++ (MSVC), Windows API, documentation and other quality-assurance techniques, and debugging. Knowledgeable in MFC, COM, GUI design, and object-oriented design.

Experience

I have been a software engineer since 1965. I have been published. My specializations have been: biomedical programming, compiler implementation, and many kinds of Windows programming. I don't do Databases or other business-oriented stuff.

Publications
Windows?/DOS Developer's Journal, ACM SIGPLAN Notices, and Computer Science Press.

Education/Credentials
ICCP Systems Programming Certification
Master's degree equivalent in Computer Science

©2016 About.com. All rights reserved.