Home > Back-end >  Java drawing method
Java drawing method

Time:01-05

,, can you teach children how to use Java drawing picture ah

CodePudding user response:

1, the JDK own drawing, mainly the two instances of the class, in the Swing project use, which provide some drawing graphics methods:

Graphics
Graphics2D

2, JFX can draw 2 d graphics, also can draw 3 d graphics, 2 d is simpler, can plane body can, direct use of graphic objects, such as ellipse, rectangle and so on, 3 d graphics is more complex, in addition to the 3 d coordinates, and perspective, lighting, material, texture, deformation, displacement and so on,

Wrote a small program, JFX before you can consult:

A JFX version tetris wrote half a month is enough _ collection - CSDN blog
https://blog.csdn.net/icoolno1/article/details/107676795

CodePudding user response:

reference 1st floor icoolno1 response:
1, the JDK's own drawing, mainly is the two instances of the class, in the Swing project use, which provide some drawing graphics methods:

Graphics
Graphics2D

2, JFX can draw 2 d graphics, also can draw 3 d graphics, 2 d is simpler, can plane body can, direct use of graphic objects, such as ellipse, rectangle and so on, 3 d graphics is more complex, in addition to the 3 d coordinates, and perspective, lighting, material, texture, deformation, displacement and so on,

Wrote a small program, JFX before you can consult:

A JFX version tetris wrote half a month is enough _ collection - CSDN blog
https://blog.csdn.net/icoolno1/article/details/107676795

Bosses, can specifically
  • Related