[Migrated content. Thread originally posted on 27 December 2002]
We call "WIN$PRINTER" routine for graphical printing and we can't define the color to fill the shape drawn with WINPRINT-GRAPH-DRAW.We use WINPRINT-GRAPH-BRUSH setting WPRTDATA-BRUSH-STYLE to WPRT-BRUSH-SOLID and computing WPRDATA-BRUSH-COLOR with the following formula:
RGB-RED (RGB-GREEN * 255) (RGB-BLUE * 65536)
The problem here is that we have a color combination of red and brown only.
The same formula is used to compute WPRTDATA-PEN-COLOR in WINPRINT-GRAPH-PEN and is working correctly, by giving a combination of all colors.
Any advice on this would be very helpful. Thanks.
Adam.