×
Menu
Index

BoxColor

 
 
  • BoxColor( [color],[fill color] ) => specify the colors to the following box. First parameter is color for the box lines, and second parameter is color for filling the box (background).
 
 
color (numeric) :  informs the color drawing the following boxes, constants from GRA.CH can be used in the form of GRA_CLR_… or any other RGB number (created with GraMakeRGBColor()) can be used. Default is GRA_CLR_BLACK.
 
Fill color (numeric) : informs the color for the filling of boxes, constants from GRA.CH can be used in the form of GRA_CLR_… or any other RGB number (created with GraMakeRGBColor()) can be used. Default is GRA_CLR_WHITE (no filling).
 
Examples :           oPdf:BoxColor( GRA_CLR_BLUE, GRA_CLR_RED ) followed by a oPdf:Box() call, will draw the a blue box with a red inside.