Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!umich!caen.engin.umich.edu!oliveria From: oliveria@caen.engin.umich.edu (ROQUE DONIZETE DE OLIVEIRA) Newsgroups: comp.sys.apollo Subject: gpr patterns Keywords: gpr, pattern fill Message-ID: <4888ff72.bb89@spam.engin.umich.edu> Date: 9 Feb 90 05:00 GMT Distribution: usa Organization: U of M Engineering, Ann Arbor, Mich. Lines: 35 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