コード例 #1
0
ファイル: Saver.java プロジェクト: Icy-imaging/Icy-Kernel
 /** 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_());
 }
コード例 #2
0
ファイル: Saver.java プロジェクト: Icy-imaging/Icy-Kernel
 /**
  * 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_());
 }