(Object pixels)
| 81 | } |
| 82 | |
| 83 | private void setBitDepth(Object pixels) { |
| 84 | if (pixels==null) |
| 85 | return; |
| 86 | if (pixels instanceof byte[]) |
| 87 | this.bitDepth = 8; |
| 88 | else if (pixels instanceof short[]) |
| 89 | this.bitDepth = 16; |
| 90 | else if (pixels instanceof float[]) |
| 91 | this.bitDepth = 32; |
| 92 | else if (pixels instanceof int[]) |
| 93 | this.bitDepth = 24; |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * @deprecated |
no test coverage detected