From: Diego de F. <def...@pl...> - 2004-06-30 16:33:03
|
On 30 Jun 2004 at 17:58, Martin Desruisseaux wrote: > Thats okay. But make sure to use only the needed type. If yours data > range from 0 to 255, use TYPE_BYTE. If it doesn't exceed 65535, use > TYPE_USHORT. The TYPE_INT may lead to some problems later, since it is > incompatible with IndexColorModel. > > Adding colors to yours image is a second step. The first step is to gets > yours data right. Remember: GridCoverage is not exactly an image. It is > better to see it as a matrix of values with real geophysics maining. The > color are only a way to display the matrix values. > > Once you have the right values, there is a GridCoverage constructor with > a Color[] argument. You can specify the color palette there. Ok, let's suppose I know the correct type for the raster, when I use the GridCoverage with Color[] as argument, how can I pass the right color palette for the raster ? p.s. sorry for the incovenience with the ML To:, now I've resent all the 4 emails that I didn't send to the ML |