Example #1
0
 /** Return the separate channel flag from specified writer and color space */
 private static boolean getSeparateChannelFlag(IFormatWriter writer, IcyColorModel colorModel) {
   return getSeparateChannelFlag(writer, colorModel.getNumComponents(), colorModel.getDataType_());
 }
Example #2
0
 /**
  * Return the closest compatible {@link IcyColorModel} supported by writer from the specified
  * {@link IcyColorModel}.<br>
  * That means the writer is able to save the data described by the returned {@link IcyColorModel}
  * without any loss or conversion.<br>
  *
  * @param writer IFormatWriter we want to test compatibility
  * @param colorModel the colorModel describing data / image format
  */
 public static IcyColorModel getCompatibleColorModel(
     IFormatWriter writer, IcyColorModel colorModel) {
   return getCompatibleColorModel(
       writer, colorModel.getNumComponents(), colorModel.getDataType_());
 }