summaryrefslogtreecommitdiff
path: root/NET/worlds/console/ScapePicImage.java
blob: ca315a4b2c2c304bb6c8799bbf4c20d8bf0ea951 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package NET.worlds.console;

import NET.worlds.network.URL;

public class ScapePicImage {
   private int hDIB;
   private int width;
   private int height;

   public ScapePicImage(URL url) {
      nativeInit();
      this.loadImage(url.unalias());
   }

   public int getWidth() {
      return this.width;
   }

   public int getHeight() {
      return this.height;
   }

   public native void flush();

   @Override
   public void finalize() {
      this.flush();
   }

   int getDIB() {
      return this.hDIB;
   }

   private native void loadImage(String var1);

   public static native void nativeInit();
}