comparison dwt/internal/image/WinICOFileFormat.d @ 240:ce446666f5a2

Update to SWT 3.4M7
author Frank Benoit <benoit@tionex.de>
date Mon, 12 May 2008 19:13:01 +0200
parents 08789b28bdf3
children c0d810de7093
comparison
equal deleted inserted replaced
239:06a1f6829310 240:ce446666f5a2
18 import dwt.DWT; 18 import dwt.DWT;
19 import dwt.dwthelper.utils; 19 import dwt.dwthelper.utils;
20 20
21 import tango.core.Exception; 21 import tango.core.Exception;
22 22
23 final class WinICOFileFormat : FileFormat { 23 public final class WinICOFileFormat : FileFormat {
24 24
25 byte[] bitInvertData(byte[] data, int startIndex, int endIndex) { 25 byte[] bitInvertData(byte[] data, int startIndex, int endIndex) {
26 // Destructively bit invert data in the given byte array. 26 // Destructively bit invert data in the given byte array.
27 for (int i = startIndex; i < endIndex; i++) { 27 for (int i = startIndex; i < endIndex; i++) {
28 data[i] = cast(byte)(255 - data[i - startIndex]); 28 data[i] = cast(byte)(255 - data[i - startIndex]);