well a Raster just doesn't have a color space. that's an interpretation
thing...

another thing you could do is read the first tile as a buffered image
and
get the color space, then read the rest as Rasters and reuse the color
space.
but i don't like that solution much... 

> -----Original Message-----
> From: Discussion list for Java 2D API 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: Tuesday, June 17, 2008 4:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA2D] 
> javax.imageio.ImageReader.readRaster(..) returns raster wi
> 
> > can you get the RenderedImage first using 
> readAsRenderedImage(), get 
> > the ColorModel/ColorSpace from there just 1 time, then do 
> the rest of 
> > your tiling from that point?
> > 
> 
> ummm yes, could do that...  That would work ok.
> 
> But it would be a good thing to know how to find out what the 
> color space of the Raster is though.  Might be useful later -- or now.
> [Message sent by forum member 'demonduck' (demonduck)]
> 
> http://forums.java.net/jive/thread.jspa?messageID=280825
> 
> ==============================================================
> =============
> To unsubscribe, send email to [EMAIL PROTECTED] and 
> include in the body of the message "signoff JAVA2D-INTEREST". 
>  For general help, send email to [EMAIL PROTECTED] and 
> include in the body of the message "help".
> 

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to