[comp.sys.apollo] gpr patterns

oliveria@caen.engin.umich.edu (ROQUE DONIZETE DE OLIVEIRA) (02/09/90)

Hi, I'm trying to create some fill patterns with gpr in C.
I was using gpr_$make_bitmap_from_array to define the pattern
bitmap and then  gpr_$set_fill_pattern to activate. Apparently
one cannot use these 2 calls together. I really don't have
much experience with pattern fills. So does anyone has some gpr-based
C programs that define some common patterns (horizontal, vertical, positive,
negative, horizontal/vertical, etc) that could be mailed to me ?
I basically have a pattern table like

static int pattern[][16] =                          /* hatch patterns */
{
 { 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0}, /* empty */
 { 0,0,0,0, 0,0,0,0, 0,0,0,0, 1,1,1,1}, /* horizontal */
 { 0,0,0,1, 0,0,0,1, 0,0,0,1, 0,0,0,1}, /* vertical */
 { 0,0,0,1, 0,0,1,0, 0,1,0,0, 1,0,0,0}, /* possitive */
 { 1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,1}, /* negative */
 { 0,0,0,1, 0,0,0,1, 0,0,0,1, 1,1,1,1}, /* horizontal/vertical */
 { 1,0,0,1, 0,1,1,0, 0,1,1,0, 1,0,0,1}, /* possitive/negative */
};

that I'd like to convert to pattern bitmaps appropriate for
gpr_$set_fill_pattern. Maybe I shouldn't have used gpr_$make_bitmap_from_array .

Since these programs tend to be over 50 lines I think it is better if
you reply to me directly. If I get a few "me too" and some sample programs,
of course, I'll summarize to the net.

In case you are wondering, I need it for an NCAR graphics version 3.0 viewer 
I'm finishing up (the hatch patterns is the only thing left to implement).
If you have done it already I would appreciate hearing about it.

   Thank you.

   Roque D Oliveira
   oliveria@caen.engin.umich.edu