public void drawImage( RenderedImage rimage, int x, int y ) {
drawImage(rimage, 0, 0, rimage.getWidth(), rimage.getHeight(), x, y, x + rimage.getWidth(), y + rimage.getHeight());
}
public static Image createDefaultImage( Display display, int width, int height ) {
ImageData swtdata = null;
PaletteData palette;
int depth;
depth = 24;
palette = new PaletteData(0xFF0000, 0xFF00, 0xFF);
swtdata = new ImageData(width, height, depth, palette);
swtdata.transparentPixel = -1;
swtdata.alpha = -1;
swtdata.alphaData = new byte[swtdata.data.length];
for( int i = 0; i < swtdata.alphaData.length; i++ ) {
swtdata.alphaData[i] = (byte) i;