Article View: borland.public.jbuilder.java.api
Article #514Generate image with Java2D
From: Andreas Patschkowski
Date: Thu, 17 Jul 2003 13:45
Date: Thu, 17 Jul 2003 13:45
29 lines
1994 bytes
1994 bytes
Hi, i try to generate a jpg with the java2d-api. I like to generate a calendar for a year, so i make a big offscreen-image and draw image for the month on it by changing the clipping area for the Graphic2d: area.setRect(startX,startY,widthMonth,heightMonth); g2.clip(area); I clip the area, draw the image on the offscreen-image, change the clipping area, draw the image again and so on. This works pretty fine, but when i change the width of the offscreen-image to a value greater than 500 px, i get a very curious effect. In the right lower third of the image the image is drew again. Sounds confusing, so i made two screenshots which are self-explaining: This is ok: http://www.krefelder76.de/graphik/calendar_ok.jpg This not: http://www.krefelder76.de/graphik/calendar.jpg Knows anybody was is going wrong here? Thank's. So long, Andreas
Technical Details
Message-ID:
<bf698r$fjd$02$1@news.t-online.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.ision.net!ision!news.belwue.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,34817e0655e2f4eb,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-07-17 06:46:18 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.ision.net!ision!news.belwue.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: "Andreas Patschkowski" <Andreas.Patschkowski@krefelder76.de> Newsgroups: borland.public.jbuilder.java.api Subject: Generate image with Java2D Date: Thu, 17 Jul 2003 15:45:01 +0200 Organization: T-Online Lines: 31 Message-ID: <bf698r$fjd$02$1@news.t-online.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 1058449499 02 15981 lNFCVt5bSHA118 030717 13:44:59 X-Complaints-To: usenet-abuse@t-online.de X-ID: EBlzkuZQweGIPZqt7M5Bjg1BAXxqlRLoY8YbxpSHj7p9voLmaB3WgZ X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165