Re: paint program
From: Paul Lutus (nospam_at_nosite.zzz)
Date: 09/22/04
- Next message: Paul Lutus: "Re: paint program"
- Previous message: Andrew Thompson: "Re: ImageIcon not finding my images!"
- In reply to: John Davison: "Re: paint program"
- Next in thread: Alex Hunsley: "Re: paint program"
- Reply: Alex Hunsley: "Re: paint program"
- Reply: John Davison: "Re: paint program"
- Reply: John Davison: "Re: paint program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 22 Sep 2004 11:00:42 -0700
John Davison wrote:
/ ...
> I'm guessing that Java probably doesn't keep track of the color of each
> pixel of each component. It probably just says "draw whatever" and then
> the underlying OS takes care of the pixels. (Someone correct me if I am
> wrong here.)
You're wrong here.
> But you *can* draw to an image, then draw the image onto a component.
And you can "draw" directly onto a component, using that component's paint()
method. This is the most efficient way to address the original problem.
-- Paul Lutus http://www.arachnoid.com
- Next message: Paul Lutus: "Re: paint program"
- Previous message: Andrew Thompson: "Re: ImageIcon not finding my images!"
- In reply to: John Davison: "Re: paint program"
- Next in thread: Alex Hunsley: "Re: paint program"
- Reply: Alex Hunsley: "Re: paint program"
- Reply: John Davison: "Re: paint program"
- Reply: John Davison: "Re: paint program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|