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


Groups > comp.lang.java.gui > #3179 > unrolled thread

image as background in ap

Started by"Indrek" <indrek@THRWHITE.remove-dii-this>
First post2011-04-27 15:43 +0000
Last post2011-04-27 15:43 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.lang.java.gui


Contents

  image as background in ap "Indrek" <indrek@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
    Re: image as background i "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
    Re: image as background i "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000

#3179 — image as background in ap

From"Indrek" <indrek@THRWHITE.remove-dii-this>
Date2011-04-27 15:43 +0000
Subjectimage as background in ap
Message-ID<47bb28ff$1_1@news.estpak.ee>
  To: comp.lang.java.gui
Hi
I want to draw polygon(s) and fill this polygon with image so that it is 
like background pattern. In example if size of image is 10x10 pixel then 
this will be repeated.

Some ideas?
Thx.

---
 * 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

[toc] | [next] | [standalone]


#3180 — Re: image as background i

From"Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this>
Date2011-04-27 15:43 +0000
SubjectRe: image as background i
Message-ID<47bb2ca1$0$27826$b9f67a60@news.newsdemon.com>
In reply to#3179
  To: comp.lang.java.gui
Indrek wrote:
> Hi
> I want to draw polygon(s) and fill this polygon with image so that it is 
> like background pattern. In example if size of image is 10x10 pixel then 
> this will be repeated.
> 
> Some ideas?
> Thx.

Look at Graphics2D.clip(Shape s) and here is a really good article on 
how to clip softly.

http://java.sun.com/mailers/techtips/corejava/2006/tt0923.html#1

-- 

Knute Johnson
email s/nospam/knute/

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
      ------->>>>>>http://www.NewsDem

---
 * 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

[toc] | [prev] | [next] | [standalone]


#3181 — Re: image as background i

From"Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this>
Date2011-04-27 15:43 +0000
SubjectRe: image as background i
Message-ID<47bb5432$0$3045$4d87748@newsreader.readnews.com>
In reply to#3179
  To: comp.lang.java.gui
Indrek wrote:
> Hi
> I want to draw polygon(s) and fill this polygon with image so that it is 
> like background pattern. In example if size of image is 10x10 pixel then 
> this will be repeated.
> 
> Some ideas?
> Thx.

Look up Graphics2D.setPaint and the TexturePaint class.

-- 
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>

---
 * 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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web