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


Groups > comp.lang.java.gui > #3121

Re: Spreading an image to

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "jmtrg" <jmtrg@THRWHITE.remove-dii-this>
Subject Re: Spreading an image to
Message-ID <e320b092-c2bb-41fa-acd6-5775e52f0d26@v4g2000hsf.googlegroups.com> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <47aae6dd$1@dnews.tpgi.com.au>
References <47aae6dd$1@dnews.tpgi.com.au>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 30
Date Wed, 27 Apr 2011 15:43:03 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918983 96.60.20.240 (Wed, 27 Apr 2011 10:43:03 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:43:03 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:3121

Show key headers only | View raw


  To: comp.lang.java.gui
there is no doubt about that ;
but if someone has a more accurate answer,
that would help me : perhaps using AffineTransform
is the solution...

On 7 f=E9v, 12:08, "Michael Dunn" <m_od...@yahoo.com> wrote:
> <jm...@hotmail.fr> wrote in message
>
> news:ea7cdb8b-c83d-4dd3-b1b6-80eaf8ce0fa0@k39g2000hsf.googlegroups.com...>=
 Hello
>
> > I found a java code allowing to display an image in a JPanel in 2
> > ways : either by centering the image or by creating a mosaic picture
> > of this image ;
> > I would rather be interested in having this image displayed once and
> > spreaded to the width and the hight of the JPanel (and this, each time
> > the JPanel size changes)
>
> <code snipped>
>
> g.drawImage(..)
>
> there are many drawImage methods in the Graphics class.
> have a look at the docs, you may find exactly what you're after.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

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


Thread

Spreading an image to the "jmtrg" <jmtrg@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
  Re: Spreading an image to "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
    Re: Spreading an image to "jmtrg" <jmtrg@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
  Re: Spreading an image to "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000

csiph-web