Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
colors [2015/04/01 12:49]
christian
colors [2016/05/12 12:37]
christian [Special colorspaces]
Line 49: Line 49:
   0 0 0 1 k  % filling   0 0 0 1 k  % filling
  
-The PDF4Smalltalk library supports these variations by initializing the renderer with a colorspaceThe renderer can than select the right operators when the fill or stroke color is setThe API is:+The renderer supports the device color spacesIf you need other color spaces, you need to work directly with the color operators.
  
 <code smalltalk> <code smalltalk>
-"colorspace: DeviceGray new" +renderer strokeColor: <ColorValue or CMYKColor>
-renderer strokeColor: <ColorValue or CMYKColor>  "with conversion" +renderer fillColor: <ColorValue or CMYKColor>.
-renderer fillColor: <ColorValue or CMYKColor>    "with conversion" +
-"colorspace: DeviceRGB new" +
-renderer strokeColor: <ColorValue>  "no conversion" +
-renderer fillColor: <ColorValue>    "no conversion" +
-"colorspace: DeviceCMYK new" +
-renderer strokeColor: <CMYKColor>   "no conversion" +
-renderer fillColor: <CMYKColor>     "no conversion"+
 </code> </code>
 +
 +The renderer will insert ''/DeviceRGB'' operators for ColorValues and ''/DeviceCMYK'' for CMYKColors. If the color is gray, ''/DevideGray'' is used.
  
 Example: Example:
  • colors.txt
  • Last modified: 2016/09/24 08:08
  • by dokuadmin