But I'm assuming you don't really want a 10 component color model.
Sounds like you really want to be working with a Raster and then subband
it and associate those subbands with a RGB color model (or something
like that) to display it, right?

jeannette

Daniele Romagnoli wrote:
Hi lists,

I'm working on a plugin which is able to read HDF4 format sources.

An HDF4 file may contain several images.
Some of these images may contain several Bands (sometime the number of
bands is greater than 10).

When building a BufferedImage, I need a Raster (SampleModel +
DataBuffer) and a ColorModel.

The SampleModel is not a problem because I can use a BandedSampleModel.
But I don't know how to handle the ColorModel for this type of images.

The ColorSpace class contains "static ints" for generic N component
color spaces (e.g. TYPE_2CLR, TYPE_3CLR, ..., TYPE_9CLR, TYPE_ACLR, ...
, TYPE_FCLR).

What I have to do in order to correctly set-up a ColorModel with a 10
components color space?
Is this an achievable task?

Thanks a lot.

Best Regards,
Daniele
===========================================================================
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