[comp.sys.mac.programmer] Manipulating Pictures

lwvanels@athena.mit.edu (Lucien Van Elsen) (02/01/89)

I'm currently writing an application which uses several large
pictures, and I'd like for the user to be able to easily change the
pattern that they're drawn in.  Is there a quicker way to change the
pattern of the picture, short of redrawing it?  I've poked around the
information stored in the pichandle, and it appears that there is a
short segment of header information (after the size & rectangle
fields) that changes depending on the pattern, but the data afterwards
is the same regardless of the pattern.  (Each picture is a series of
~1000 lineto calls, with no changes of pattern once it has started).
Is it possible to somehow change just this header information to
change the pattern the picture will be drawn in?  Sorry if I'm missing
something obvious...

Lucien Van Elsen
Internet:lwvanels@athena.mit.edu or lve@wheaties.ai.mit.edu
UUCP: ...!mit-eddie!mit-athena!lwvanels
               "Wherever you go, there you are"