[net.micro.mac] Programming question.

henry@rochester.UUCP (09/22/85)

From: Henry.Kautz

Question:  I want to display a non-rectangular MacPaint image overtop
of some other drawings.  So I create the image, lasso it, cut it to the
scrapbook, use the resource mover to move it to my application, and
draw it with DrawPicture.  Problem:  even though I originally used the
lasso, the full rectangle containing the image is drawn, thus "whiting
out" a rectangular region around the image.  Second attempt:  I copy
the image from the scrapbook, paste it into MacDraw, cut it out again
to the scrapbook, and finally move it to my application.  Now when it
is drawn, the background is visible through ALL parts of the image.
Hmmm.  Would someone tell me how to get the desired result?  Thanks in
advance --
---- Henry Kautz
	:uucp:	{seismo|allegra}!rochester!henry
	:arpa:	henry@rochester
	:mail:  Dept. of Comp. Sci., U. of Rochester, NY 14627
	:phone: (716) 275-5766

gillies@noao.UUCP (Kim Gillies X246) (01/06/86)

 	I am working on an application that has a freehand drawing tool
	similar to the pencil in MacPaint.  The difference is that I would
	like to be able to draw other than solid lines.  For instance, the
	line might me made up of a "line pattern" of two dashes and a dot
	repeated over and over for the length of the line.  I realize that 
	a clever pen pattern can be used to make grids and other special 
	cases but I'm not sure if a pen pattern will work in the general
	case.  My experience is that pen patterns are not the answer.
	I am wondering if this sort of thing can be done.  Please mail any
	suggestions.  I have a few ideas, but none is a simple answer.