Reference > Methods > UseCmyk

SharpPlot.UseCmyk

Create a color using the CMYK model. This allows full control over the inks used by PostScript printers if the output is saved in EPS or PDF formats. All other formats simply convert the chosen color to RGB for screen display.

Example

  sp.SetBackground(sp.UseCmyk(0,2,20,0),FillStyle.Solid,0);
  
  sp.Heading = "Check out Alternate Colour Models";
  sp.Subheading = "This should look very like the main heading";

  Color darkolive = sp.UseCmyk(9,0,24,58);

  sp.SetHeadingFont("Times New Roman",16,FontStyle.Italic,darkolive);
  sp.SetSubheadingFont("Times",12,FontStyle.Regular,Color.DarkOliveGreen);

Overloads

Returns a standard Color object encoding the required CMYK values. This is used directly by EPS and PDF output (both of which support the CMYK color space) or converted back to RGB for screen display by all other formats. The exact colors shown on screen may vary depending on the software used to view the file.

See also ...

The CMYK Color Model


Send comments on this topic
© Dyalog Ltd 2013