1:
8:
9: package ;
10:
11:
17: public class Pixmap extends Drawable
18: {
19: public Pixmap(XImage image, Screen screen)
20: {
21: this(screen.getRootWindow(),
22: image.getWidth(), image.getHeight(),
23: image.getDepth());
24:
25:
28: GC gc = GC.create (this);
29:
30: gc.putImage(image, 0, 0, 0, 0, image.getWidth(), image.getHeight());
31: }
32:
33: public Pixmap(Drawable sameScreenAs, int width, int height, int depth)
34: {
35: super(sameScreenAs.getDisplay(),
36: createXID(sameScreenAs, width, height, depth));
37: }
38:
39: protected static native int createXID(Drawable sameScreenAs,
40: int width, int height, int depth);
41:
42: protected native void finalize();
43: }