[6239] in java-interest
Re: question re. awt.Graphics
daemon@ATHENA.MIT.EDU (dc)
Tue Mar 26 21:01:55 1996
Date: Mon, 25 Mar 1996 02:52:51 -0800
Reply-To: Java Interest <JAVA-INTEREST@JAVASOFT.COM>
From: dc <dc@SYMBOLICSOFT.COM>
To: Multiple recipients of list JAVA-INTEREST
<JAVA-INTEREST@JAVASOFT.COM>
At 11:47 PM 3/17/96 -0500, you wrote:
>I think these should be obvious, but perusing the code, examples and
>FAQ's failed to help.
>
>1. How does one draw lines of varying thickness / dash patterns (I
>could write my own, but there seems to be no setPixel()) ?
This is an oft-quoted missing function. I saw a class that someone did that
dealt with thick lines by drawing multiple lines, but can't remember where.
Source was right there tho'.
setpixel is another one that's missing, people have suggest using a
one-pixel long line, or possibly the imageProducer class.
>2. How does one do stipples? (i.e filled areas with patterns/tiles)
guess you'd have to set a cliprect (ie not a region, just a rectangle) and
keep on using 'drawImage' with offsets to fill it...
You could draw a tile of the stipple into an image to use as a brush, but I
don't know of any built in patterns (or windoze type Brushes).
Let me know if you find anything else out!
dc
___________________________________________________________________
/\ dave 'dc' collier
/_/\ Symbolic Software, Inc.
/_\_ \ dc@SymbolicSoft.com
/___/__\ tel (415) 546 1295
www.BurnCycle.com
-----
This message has been forwarded via the JAVA-INTEREST
mailing list. In order to unsubscribe from this list, send a message to
listserv@javasoft.com with the command 'signoff JAVA-INTEREST' in
the message body (not in the subject line).