Changeset 213:36f5cb12e1a2 for dwt/internal/image/PngPlteChunk.d
- Timestamp:
- 05/17/08 11:34:28 (8 months ago)
- Files:
-
- dwt/internal/image/PngPlteChunk.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/internal/image/PngPlteChunk.d
r212 r213 13 13 module dwt.internal.image.PngPlteChunk; 14 14 15 import dwt.dwthelper.utils; 16 15 17 16 18 import dwt.DWT; … … 22 24 23 25 import tango.text.convert.Format; 24 import dwt.dwthelper.utils;25 26 26 27 class PngPlteChunk : PngChunk { … … 112 113 // Palette chunks' data fields must be event multiples 113 114 // of 3. Each 3-byte group represents an RGB value. 114 if (getLength() % 3 !is 0) DWT.error(DWT.ERROR_INVALID_IMAGE); 115 if (getLength() % 3 !is 0) DWT.error(DWT.ERROR_INVALID_IMAGE); 115 116 116 117 // Palettes cannot have more entries than 2^bitDepth
