Re: Plotting waveform with applets in Java
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Thu, 13 Jul 2006 17:03:37 GMT
<andrewthommo@xxxxxxxxx> wrote in message news:1152617077.540111.289520@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
MTP wrote:[...]
> shibu.chandran@xxxxxxxxx a écrit :
...
> > I can plot only upto 500 points. After
> > that the applet plots outside the visible area.
> without being an expert, i think you could draw your points in a
> backbuffer (BufferedImage) and then scale the image to fit the applet
> size and draw it.
Use a buffered image if you need double buffering, but even if you are,
it is more efficient to make the BI the same size as the applet and
scale the points to fit the BI as they are being drawn.
The point is to increase the apparent resolution. It's a trick that's common used in video games: http://en.wikipedia.org/wiki/FSAA
However, if this is a line plot, I imagine it'd be more efficient to scale the data itself, as Andrew mentioned in another branch of this thread, and simply enable anti-aliasing when drawing your lines.
- Oliver
.
- References:
- Re: Plotting waveform with applets in Java
- From: andrewthommo
- Re: Plotting waveform with applets in Java
- Prev by Date: Re: Drawing 25 000 Shape fast
- Next by Date: Re: Drawing 25 000 Shape fast
- Previous by thread: Re: Plotting waveform with applets in Java
- Next by thread: Changing look and feel
- Index(es):
Relevant Pages
|
|