Why would you use JNI to draw on an AWT Canvas?

I am new to JNI and I stumbled upon this while looking at JNI:

Not only a built-in Java code interface, it can also use Java Canvas, which is possible using the Java AWT Native Interface

Is there a specific reason this functionality was made specific / available? Does Windows increase processing time? Please specify why and when you will use this feature.

+4
source share
2 answers

Java... , , , . [/p >

Java:

Java Canvas , Java, , . , , Java. Java- , , .

+4

AWT JNI 3D- OpenGL DirectX D3D. API- Java, Java3D JOGL, Canvas.java . 2D, Java-.

0

Source: https://habr.com/ru/post/1548712/


All Articles