.NET equivalent of java.awt.color.ColorSpace

I am trying to port a library from Java to .NET, which uses the java.awt.color namespace heavily. What is equivalent to this .NET?

+3
source share
3 answers

The java.awt.color namespace seems to apply only to color spaces. There is no such concept in .Net as a color space. Everything in .Net is based on RGB (RGB color space), with the possible exception of the new XAML attributes in WPF. The java.awt.color namespace includes considerations for ideas such as CMYK ( C yan, M agenta, Y below b L ack), which is used only in print applications. A.

I assume that if you are really working on an application that sends CMYK color data to a printer, you do not need to worry about that. Colors in .Net are based on RGB or aRGB (even grayscale. RGB values ​​are simply equal, so RGB (128,128,128 = MediumGray)

+1
+3

SystemColors , ControlBrush, ControlBrushKey DesktopBrush. - SolidColorBrush, . ; .

The System.Drawing namespace has brushes, images, converters, system colors, regions, and almost all the basics of drawing windows. I think this is closely related to GDI +.

If you have any specific classes you need to map to or requirements for, add a comment and I will see what I can do.

0
source

Source: https://habr.com/ru/post/1716355/


All Articles