Mega Code Archive

 
Categories / Java Tutorial / SWT
 

Creating Images

Image Constructors ConstructorDescription Image(Device device, String filename)Creates an image from the specified file name Image(Device device, InputStream stream)Creates an image from the specified stream Image(Device device, int width, int height)Creates an empty image of the specified width and height (in pixels) Image(Device device, Rectangle bounds)Creates an empty image of the specified size Image(Device device, ImageData data)Creates an image from the specified ImageData Image(Device device, ImageData source, ImageData mask)Creates an image by combining the specified ImageData objects Image(Device device, Image source, int flag)Creates an image from the specified image, using the value specified by flag