Java - SWT/JFace

Image, drauf zeichnen



Das folgende Code-Beispiel gibt weißen Text auf dem Image aus:

Image image = new Image(shell.getDisplay(), "image.png");
GC gc = new GC(image);
gc.setForeground(display.getSystemColor(SWT.COLOR_WHITE));
gc.drawText("Mein Text", 0, 0, true);
gc.dispose();

Eigene Werkzeuge
Werkzeuge

gratis Counter by GOWEB
seit 9.10.2007