| ||
SharpPlot Tutorials General Tutorials Chart Samples Style Examples SharpLeaf Tutorials Document Layout Tutorials Text Flow Tutorials Table Tutorials Visual Glossaries SharpPlot Class SharpPlot Properties SharpPlot Structures SharpPlot Enumerations PageMap Class SharpLeaf Reference SharpLeaf Class SharpLeaf Properties SharpLeaf Methods Table Class Table Properties Table Methods SharpLeaf Structures FontType Structure ParagraphStyle Structure BoxStyle Structure SharpLeaf Enumerations DocumentLayout Classes DocumentLayout Class PageLayout Class PageElement Abstract Class Frame : PageElement Class TextBlock : PageElement Class ImageBlock : PageElement Class Box : PageElement Class Rule : PageElement Class Common Reference Document Class VectorMath Class DbUtil Class Download Release Notes Licensing |
SharpPlot Reference > SharpPlot Methods > UseCmyk SharpPlot.UseCmykCreate 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. Examplesp.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. CMYK-encoded colors will be encoded as ARGB with alpha<9. Therefore transparency lower than 9 should not be used in SharpPlot colors, otherwise they will be wrongfully interpreted as CMYK levels. See also ... |