Your preferences have been saved!
» Returns all jpg images from a directory in an array - import java.io.File; import java.io.IOException; import java.util.ArrayList; public class FileUtils {     /**      * Returns all jpg images from a directory in an array.      *      * @param directory                 the directory to start with      * @param descendIntoSubDirectories should we include sub directories?      * @return an ArrayList<String> containing all the files or nul if none are found..... 14 Feb 12 » Renderer for RGB images using AWT Image using Java Media - import javax.media.*; import javax.media.renderer.VideoRenderer; import javax.media.Format; import javax.media.format.VideoFormat; import javax.media.format.RGBFormat; import java.awt.*; import java.awt.image.*; import java.awt.color.ColorSpace; import java.awt.event.*; import java.util.Vector;... 14 Feb 12 » Image observer blocks until the image is completely loaded. AWT - import java.awt.Graphics; import java.awt.Image; import java.awt.image.BufferedImage; import java.awt.image.ImageObserver; import java.io.Serializable; /**  * This image observer blocks until the image is completely loaded. AWT  * defers the loading of images until they are painted on a graphic.  *  * While printing reports it is not very nice, not to know whether a image... 14 Feb 12 » Provides useful methods for converting images from one colour depth - import java.awt.Transparency; import java.awt.image.BufferedImage; import java.awt.image.ColorConvertOp; import java.awt.image.DataBuffer; import java.awt.image.IndexColorModel; /**  * Provides useful methods for converting images from one colour depth to  * another.  *   * @author Ian McDonagh... 14 Feb 12 » Using mediatracker to pre-load images - import java.awt.BorderLayout; import java.awt.Graphics; import java.awt.Image; import java.awt.MediaTracker; import java.awt.Toolkit; import javax.swing.JFrame; import javax.swing.JPanel; public class Main extends JFrame {   Main() {     add(BorderLayout.CENTER, new ImagePanel());... 06 Feb 12 » Create buffered images that are compatible with the screen - import java.awt.GraphicsConfiguration; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; import java.awt.Transparency; import java.awt.image.BufferedImage; public class Main {   public static void main(String[] argv) throws Exception {     GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();     GraphicsDevice gs = ge.getDefaultScreenDevice();     GraphicsConfiguration gc = gs.getDefaultConfiguration();... 06 Feb 12 » Utility class for managing resources such as colors, fonts, images, - import java.awt.Image; import java.awt.Toolkit; import java.io.BufferedInputStream; import java.io.ByteArrayOutputStream; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.Iterator; import javax.swing.ImageIcon;... 05 Feb 12 » Make your own animation from a series of images - import java.awt.BorderLayout; import java.awt.Graphics; import java.awt.MediaTracker; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.Timer; public class Main extends JPanel implements ActionListener {... 04 Feb 12