Стартовый пул
This commit is contained in:
13
bgracontrols/bgra_pascalscript_library/java/bgra.java
Normal file
13
bgracontrols/bgra_pascalscript_library/java/bgra.java
Normal file
@@ -0,0 +1,13 @@
|
||||
public class bgra {
|
||||
/////////////////////// the bgra library declarations ///////////////
|
||||
public static native void create(int num);
|
||||
public static native void createwithsize(int num, int left, int top);
|
||||
|
||||
public static native void fill(int num, int color);
|
||||
public static native int rgb(int r, int g, int b);
|
||||
public static native void filtersmartzoom3(int num, int typ);
|
||||
public static native void savetofile(int num, String fn);
|
||||
public static native void destroy(int num);
|
||||
|
||||
}
|
||||
|
23
bgracontrols/bgra_pascalscript_library/java/test.java
Normal file
23
bgracontrols/bgra_pascalscript_library/java/test.java
Normal file
@@ -0,0 +1,23 @@
|
||||
import static java.lang.System.out;
|
||||
import javax.swing.JOptionPane;
|
||||
|
||||
public class test {
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
System.loadLibrary("bgrabitmap");
|
||||
|
||||
out.println("Library is loaded...");
|
||||
out.println("______________________________________________________________________");
|
||||
out.println();
|
||||
|
||||
bgra.createwithsize(0,100,100);
|
||||
bgra.fill(0, bgra.rgb(0, 255, 0));
|
||||
bgra.savetofile(0, "test.png");
|
||||
bgra.destroy(0);
|
||||
out.println("Bitmap is saved...");
|
||||
out.println("______________________________________________________________________");
|
||||
out.println();
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user