Basic Principles of 2D Graphics. Raster Graphics. aka pixel or pixel-oriented graphics. Colors are assigned to each pixel. Used for computer monitors, printers, and file formats like bitmap or jpg All geometrical shapes must be converted to pixels Leads to high computational efforts
Insets ins = this.getInsets();
This statement places the width of the left, right, upper, and lower margin in pixels and can be retrieved by:
ins.left, ins.right, ins.top, and ins.bottom.