RE: OutofMemory while reading JPEG file Using Apache Batik
Martin Gainty <[email protected]> Sun, 17 Mar 2013 08:16:05 -0400
| Newsgroups | gmane.text.xml.batik.user |
|---|---|
| Message-ID | <[email protected]> |
My attempt was for you to 1)begoff the BufferedImage empty createCompatibleWritableRaster method and2)implement createCompatibleWritableRaster(int width,int height) from another source
(such as java.aw.image.Raster seen here)
public WritableRaster createCompatibleWritableRaster(int w, int h) { if (w <= 0 || h <=0) { throw new RasterFormatException("negative " + ((w <= 0) ? "width" : "height")); } SampleModel sm = sampleModel.createCompatibleSampleModel(w,h); return new SunWritableRaster(sm, new Point(0,0)); }
but if you want to render a TIFFImage I suppose that will work just as well
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> Date: Sat, 16 Mar 2013 21:23:37 -0700
> From: [email protected]
> To: [email protected]
> Subject: RE: OutofMemory while reading JPEG file Using Apache Batik
>
> Hello Martin,
>
> please look at
> http://painterly.costar.sfu.ca/browser/trunk/libs/jiu/net/sourceforge/jiu/codecs/tiff/TIFFDecoder.java?rev=372
>
> Thank You
> Mihir Parekh
>
>
>
> --
> View this message in context: http://batik.2283329.n4.nabble.com/OutofMemory-while-reading-JPEG-file-Using-Apache-Batik-tp4655495p4655515.html
> Sent from the Batik - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>