public void copyDataFrom(CPColorBmp bmp) {
		if (bmp.width != width || bmp.height != height) {
			width = bmp.width;
			height = bmp.height;
			data = new int[width * height];
		}

		System.arraycopy(bmp.data, 0, data, 0, data.length);
	}