App
ChannelCount.java
Go to the documentation of this file.
1 package mhr.appcore.bitmap;
2 
6 public enum ChannelCount {
10 
11  private final int count;
12 
17  private ChannelCount(int count) {
18  this.count = count;
19  }
20 
25  public int getCount() {
26  return count;
27  }
28 
34  public static ChannelCount fromCount(int count) {
35  switch (count) {
36  case 1:
38  case 4:
40  default:
42  }
43  }
44 }