SilverScreen Solid Modeler

get_pen_info

get_pen_info

Previous topic Next topic  

get_pen_info

Previous topic Next topic JavaScript is required for the print function  

 

SilverScreenAPI

 

void get_pen_info ( SS_PEN_INFO *pen_info )

 

SS_PEN_INFO *pen_info;   // A pointer to an SS_PEN_INFO data type

 

 

 




Synopsis

#include "silver.h"

 

The get_pen_info function retrieves properties of SilverScreen's current pen

 

 

Parameters

pen_info is a pointer to an SS_PEN_INFO data type that will receive the pen information

 

 

Return Value

none

 

 

Remarks

The current pen is set via the pen command and is used when drawing primitives.

 

 

See Also

get_pattern_info

 

 

Example

The following code gets the current pen info, then reports the pen color as an RGB triple:

C / C++ Code

 

 #include "silver.h"

 

 . . .

 

 SS_PEN_INFO pi;

 

 get_pen_info(&pi);

 

 error_message("Pen color r%dg%db%d",

               RED_COLOR(pen.rgb),

               GREEN_COLOR(pen.rgb),

               BLUE_COLOR(pen.rgb));