java Programming Glossary: graphicsconfiguration
How do you create a thumbnail image out of a JPEG in Java? http://stackoverflow.com/questions/1069095/how-do-you-create-a-thumbnail-image-out-of-a-jpeg-in-java GraphicsDevice gd ge.getDefaultScreenDevice GraphicsConfiguration gc gd.getDefaultConfiguration BufferedImage image gc.createCompatibleImage..
Change screen resolution in Java http://stackoverflow.com/questions/11225113/change-screen-resolution-in-java java.awt.Frame import java.awt.Graphics import java.awt.GraphicsConfiguration import java.awt.GraphicsDevice import java.awt.GraphicsEnvironment.. MultiBufferTest int numBuffers GraphicsDevice device try GraphicsConfiguration gc device.getDefaultConfiguration mainFrame new Frame gc mainFrame.setUndecorated..
Drawing a Component to BufferedImage causes display corruption http://stackoverflow.com/questions/11739989/drawing-a-component-to-bufferedimage-causes-display-corruption view jScrollPane.getViewport .getView if img null GraphicsConfiguration gfConf GraphicsEnvironment.getLocalGraphicsEnvironment .getDefaultScreenDevice..
Program not accessing method paintComponent() of extended JPanel class http://stackoverflow.com/questions/12226198/program-not-accessing-method-paintcomponent-of-extended-jpanel-class import java.awt.Graphics2D import java.awt.GraphicsConfiguration import java.awt.GraphicsDevice import java.awt.GraphicsEnvironment.. GraphicsDevice gd ge.getDefaultScreenDevice GraphicsConfiguration gc gd.getDefaultConfiguration BufferedImage image gc.createCompatibleImage..
Blinking Tray Icon http://stackoverflow.com/questions/12707401/blinking-tray-icon import java.awt.Graphics2D import java.awt.GraphicsConfiguration import java.awt.GraphicsDevice import java.awt.GraphicsEnvironment.. GraphicsDevice gd ge.getDefaultScreenDevice GraphicsConfiguration gc gd.getDefaultConfiguration BufferedImage image gc.createCompatibleImage..
Tinting Image in Java improvement http://stackoverflow.com/questions/14225518/tinting-image-in-java-improvement null frame.setVisible true public static GraphicsConfiguration getGraphicsConfiguration return GraphicsEnvironment.getLocalGraphicsEnvironment.. true public static GraphicsConfiguration getGraphicsConfiguration return GraphicsEnvironment.getLocalGraphicsEnvironment .getDefaultScreenDevice.. width int height int transparency BufferedImage image getGraphicsConfiguration .createCompatibleImage width height transparency image.coerceData..
Java 2D game graphics http://stackoverflow.com/questions/1963494/java-2d-game-graphics java.awt.Color import java.awt.Graphics2D import java.awt.GraphicsConfiguration import java.awt.GraphicsEnvironment import java.awt.Toolkit.. 320 private int height 240 private int scale 1 private GraphicsConfiguration config GraphicsEnvironment.getLocalGraphicsEnvironment .getDefaultScreenDevice..
Java2D Performance Issues http://stackoverflow.com/questions/196890/java2d-performance-issues image obtain the current system graphical settings GraphicsConfiguration gfx_config GraphicsEnvironment. getLocalGraphicsEnvironment.. new optimized image return new_image In my previous post GraphicsConfiguration was what held the information needed to create optimized images..
Java Font Rendering http://stackoverflow.com/questions/2018102/java-font-rendering lazy dog val General AA aa .toCharArray Image img null GraphicsConfiguration cfg getGraphicsConfiguration img cfg.createCompatibleImage getWidth.. .toCharArray Image img null GraphicsConfiguration cfg getGraphicsConfiguration img cfg.createCompatibleImage getWidth line dgc Graphics2D img.getGraphics..
Rotate an image in java http://stackoverflow.com/questions/4156518/rotate-an-image-in-java int Math.floor w cos h sin newh int Math.floor h cos w sin GraphicsConfiguration gc getDefaultConfiguration BufferedImage result gc.createCompatibleImage..
Export PDF pages to a series of images in Java http://stackoverflow.com/questions/550129/export-pdf-pages-to-a-series-of-images-in-java import java.awt.Graphics import java.awt.GraphicsConfiguration import java.awt.GraphicsDevice import java.awt.GraphicsEnvironment.. image GraphicsDevice gs ge.getDefaultScreenDevice GraphicsConfiguration gc gs.getDefaultConfiguration bimage gc.createCompatibleImage..
Is there a way to take a screenshot using Java and save it to some sort of image? http://stackoverflow.com/questions/58305/is-there-a-way-to-take-a-screenshot-using-java-and-save-it-to-some-sort-of-image
Java Toolkit Getting Second screen size http://stackoverflow.com/questions/6322627/java-toolkit-getting-second-screen-size via the getGraphicsConfigration method which returns a GraphicsConfiguration that has a getDevice . The getIDstring method will probably..
How to add 20 pixels of white at the top of an existing image file? http://stackoverflow.com/questions/7028780/how-to-add-20-pixels-of-white-at-the-top-of-an-existing-image-file share improve this question Suggestion Use GraphicsConfiguration.createCompatibleImage int width int height to create a BufferedImage.. private static BufferedImage ALTERED private static final GraphicsConfiguration config GraphicsEnvironment.getLocalGraphicsEnvironment .getDefaultScreenDevice..
Does JFrame.setExtendedState(MAXIMIZED_BOTH) work with undecorated frames? http://stackoverflow.com/questions/7403584/does-jframe-setextendedstatemaximized-both-work-with-undecorated-frames by camickr as my MaximizedBounds I get a bit closer GraphicsConfiguration graphicsConfiguration frame.getGraphicsConfiguration frame.setMaximizedBounds.. GraphicsConfiguration graphicsConfiguration frame.getGraphicsConfiguration frame.setMaximizedBounds graphicsConfiguration.getBounds frame.setExtendedState.. with multiple monitors and multiple taskbar configurations GraphicsConfiguration config frame.getGraphicsConfiguration Rectangle usableBounds..
How to handle events from keyboard and mouse in full screen exclusive mode in java? http://stackoverflow.com/questions/7456227/how-to-handle-events-from-keyboard-and-mouse-in-full-screen-exclusive-mode-in-ja import java.awt.Graphics2D import java.awt.GraphicsConfiguration import java.awt.GraphicsDevice import java.awt.GraphicsEnvironment.. for one display systems setIgnoreRepaint true GraphicsConfiguration gc device.getDefaultConfiguration frame new JFrame gc device.setFullScreenWindow..
List of useful environment settings in Java http://stackoverflow.com/questions/7585699/list-of-useful-environment-settings-in-java Device j gd.toString gd.getIDstring GraphicsConfiguration gc gd.getConfigurations for int i 0 i gc.length i sb.append..
|