- Timestamp:
- 07/25/06 14:44:49 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/components/rendering/src/omeis/providers/re/data/PlaneFactory.java
r734 r821 115 115 + type.getValue() + "'"); 116 116 } 117 118 /** 119 * A static helper method to retrieve pixel byte signage. 120 * 121 * @param type The pixels type for which you want to know the byte width. 122 * @return The number of bytes per pixel value. 123 */ 124 static boolean isTypeSigned(PixelsType type) 125 { 126 if (in(type, new String[] {"uint8", "uint16", "uint32"})) 127 return false; 128 else if (in(type, new String[] { "int8", "int16", "int32", "float", "double"})) 129 return true; 130 else 131 throw new RuntimeException("Unknown pixel type: '" 132 + type.getValue() + "'"); 133 } 134 117 135 118 136 /**
