[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Drawing CMYK Colors with VB.NET.

Posted on 2008-01-29
7
Medium Priority
?
2,291 Views
Last Modified: 2013-11-26
I would like to be able to color a Panel or some other Control with a CMYK value.  The value is going to be specified by the user via TextBoxes.  The important part is that I am able to display a CMYK color on the Form.  How I go about doing it is not quite as important.

How can I go about doing this?  Do I need to use GDI Graphics?  Or is there some other means of accomplishing this?

Thanks.
0
Comment
Question by:AccuLink
  • 4
  • 3
7 Comments
 
LVL 4

Accepted Solution

by:
J1H1W1 earned 1000 total points
ID: 20773376
Convert the CMYK to RGB and set the backcolor of the control to Color.FromARGB.
0
 

Author Comment

by:AccuLink
ID: 20777113
I guess that would make sense given that CMYK is for printing and RGB is screen display.

Is a conversion absolutely necessary?

Thanks.
0
 

Author Comment

by:AccuLink
ID: 20777136
Also, how is it programs such as Photoshop or any other imaging software allows you to specify a color in CMYK and is capable of showing you a preview?  Or is that a converted color as well?
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
LVL 4

Expert Comment

by:J1H1W1
ID: 20777491
If you want to display a color on a device that starts out black and adds colors, you use RGB.  If you want to display a color on a device that starts out white and subtracts colors, you use CMYK.  It doesn't make much sense to start out black and subtract colors.
0
 

Author Comment

by:AccuLink
ID: 20777528
I do appreciate the responses but I think this question is getting a bit side-tracked.

Is there any possible means of displaying a CMYK value with VB.NET?  If there is, then how can I accomplish this?

Thanks.
0
 
LVL 4

Expert Comment

by:J1H1W1
ID: 20777709
What problem are you having implementing my first response?
0
 

Author Comment

by:AccuLink
ID: 20777740
Well the challenge with that suggestion is that converting between CMYK and RGB results in color differentiation.  The scenario that I am dealing with needs to avoid any such color changes due to conversions.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Suggested Courses

612 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question