Skip to content

Commit 73be9e8

Browse files
ShadyBoukharyumar456
authored andcommitted
Added window example
1 parent 05890b7 commit 73be9e8

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

examples/WindowEx.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import com.arrayfire.*;
2+
3+
public class WindowEx {
4+
public static void main(String[] args) {
5+
System.out.println("Creating window");
6+
try {
7+
Array img = new Array();
8+
Data.randu(img, new int[] { 200, 200 }, Array.IntType);
9+
Window window = new Window();
10+
while (!window.closeWindow()) {
11+
window.image(img, "Image");
12+
window.show();
13+
}
14+
window.close();
15+
} catch (Exception ex) {
16+
ex.printStackTrace();
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)