Lasso Soft Inc. > Home

[PDF_Doc->SetColor]

[PDF_Doc->SetColor] sets the color and style for subsequent drawing operations. A required -Type parameter specifies whether the drawing action is of type Stroke, Fill, or Both. A required -Color parameter specifies a color type of Gray, RGB, or CMYK. If Gray is specified, a -C1 parameter specifies a gray color value. If RGB is specified, -C1, -C2, and -C3 parameters specifiy red, green and blue values, respectively. If CMYK is specified, -C1, -C2, -C3, and -C4 parameters specifiy cyan, magenta, yellow, and black values, respectively. Color values are specified as integers ranging from 0 to 255.

  • Syntax
  • Parameters
[$Variable Name->(SetColor: -Color='Gray', -C1=Integer)]
[$Variable Name->(SetColor: -Color='RGB', -C1=Integer, -C2=Integer, -C3=Integer)]
[$Variable Name->(SetColor: -Color='CMYK', -C1=Integer, -C2=Integer, -C3=Integer, -C4=Integer)]
Required Parameters
-Type Specifies the drawing action as Stroke, Fill, or Both.
-Color Specifies a color type of Gray, RGB, or CMYK.
-C1, -C2, -C3, -C4 Specify color values of 0 to 255 for the selected color parameter.
Examples

See the PDF chapter in the Lasso 8 Language Guide for examples of how to use this tag. Many of the PDF examples require lengthy descriptions and the use of several related tags and are better suited to presentation in the Language Guide. This tag is documented on page 530.

Tag Link [PDF_Doc->SetColor] Category PDF
Type Member Data Source Any
Support Preferred Version 6.0
Output Type None Security File
Implementation LJAPI Sets Lasso 6.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft