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


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

Re: Spreading an image to

From "jmtrg" <jmtrg@THRWHITE.remove-dii-this>
Subject Re: Spreading an image to
Message-ID <e320b092-c2bb-41fa-acd6-5775e52f0d26@v4g2000hsf.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <47aae6dd$1@dnews.tpgi.com.au>
Date 2011-04-27 15:43 +0000
Organization TDS.net

Show all headers | 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