(int b, int d, boolean e, boolean t,
int rm, int gm, int bm, int rs, int gs, int bs)
| 35 | public class PixelFormat { |
| 36 | |
| 37 | public PixelFormat(int b, int d, boolean e, boolean t, |
| 38 | int rm, int gm, int bm, int rs, int gs, int bs) |
| 39 | { |
| 40 | bpp = b; depth = d; trueColour = t; bigEndian = e; |
| 41 | redMax = rm; greenMax = gm; blueMax = bm; |
| 42 | redShift = rs; greenShift = gs; blueShift = bs; |
| 43 | converters = new HashMap<Integer, ColorConvertOp>(); |
| 44 | if (!isSane()) |
| 45 | throw new Exception("invalid pixel format"); |
| 46 | |
| 47 | updateState(); |
| 48 | } |
| 49 | |
| 50 | public PixelFormat() |
| 51 | { |
nothing calls this directly
no test coverage detected