Accessing device coordinates in java graphics | Razsoft Education

 Java 2D API defines three level of configuration information to encapsulate conversion information from user to device coordinate.


1. Graphics Environment class :- GraphicsEnvironment class describe the collection of rendering device visible to the java application on a platform. Rendering device include screens, printers and image buffers. It also include all the fonts available to the device. 

2. Graphics Device class :- GraphicsDevice class describe all the possible rendering device on the graphics environment. Such as screens or printers.

3. Graphics Configuration class :- A GraphicsConfiguration class contains all the different types of configuration supported by the graphics device. For example let a screen may have two different configuration such as 720 * 480 or 1920 * 1080 pixel resolution. We can change it's configuration as we want. Or a screen may have different color mode such as 16-bit, 32 - bit or 256 bit color mode. All such information about a device is stored into graphics configuration class.

Comments

Popular posts

Drawing shapes using java graphics API | Razsoft Education

Java 2D Rendering Pipeline | Rendering in java | Razsoft Education

History of C++ | Razsoft Education

Integer data type in C++ programming language | Razsoft education

What is Object Oriented Programming | Razsoft Education

Different data types in C++ | Razsoft Education

"climits" Header file in c++ programming language | Razsoft Education

What is structured programming paradigm | Razsoft education

Coordinate system of java | Graphics2D coordinate system | Razsoft Education