Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #38845

Re: Graphics2D#fill3DRect?

From Knute Johnson <groups@585ranch.com>
Newsgroups comp.lang.java.programmer
Subject Re: Graphics2D#fill3DRect?
Date 2019-03-31 18:06 -0500
Organization A noiseless patient Spider
Message-ID <q7rh4q$unj$1@dont-email.me> (permalink)
References <q7rad8$77s$1@dont-email.me> <3D-20190331222950@ram.dialup.fu-berlin.de> <pixel-20190331225715@ram.dialup.fu-berlin.de> <color-20190331230425@ram.dialup.fu-berlin.de>

Show all headers | View raw


On 3/31/2019 5:04 PM, Stefan Ram wrote:
> ram@zedat.fu-berlin.de (Stefan Ram) writes:
>> Today, with "retina" displays, a pixel is nothing.
> 
>    There once was the recommendation to set the rectangle color
>    equal to the background color for this method. If you do
>    this, in fact, you can see some kind of 3D rectangle without
>    magnification, so,
> 
> g.setColor( java.awt.Color.GRAY );
> g.fill( b );
> g.fill3DRect( b.x+40, b.y+40, b.width-80, b.height-80, true );
> 
>    .
> 
> 
If I switch to gray for the background and white for the rectangle I now 
see 1 pixel of edge on the right and bottom sides (I think).

Thanks!


k

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Graphics2D#fill3DRect? Knute Johnson <groups@585ranch.com> - 2019-03-31 16:11 -0500
  Re: Graphics2D#fill3DRect? Knute Johnson <groups@585ranch.com> - 2019-03-31 18:06 -0500

csiph-web