Background image

12 views
Skip to first unread message

JB

unread,
Jan 3, 2011, 3:47:38 AM1/3/11
to J4ME
Good Day All,

Compliments of the new season!

Is it possible to set an image as a background with J4ME??

Thanks.

DejanB

unread,
Jan 14, 2011, 5:16:28 PM1/14/11
to J4ME
public void paint(Graphics g) {

// BACKGROUND
try {
g.drawImage(Resurs.lancanic_canvas_backgroundImage,
this.getWidth() / 2, this.getHeight() / 2,
Graphics.HCENTER | Graphics.VCENTER);
} catch (Exception ee) {
Log.error("drawImage(" + this + ")", ee);
}

super.paint(g); // UI Components.

// FOREGROUND

Resurs.globeFPS.global_fps++;
Resurs.globeFPS.drawDiagram(g);
Reply all
Reply to author
Forward
0 new messages