Image Processing Toolbox User's Guide Previous page   Next Page
im2java2d

Convert image to Java buffered image

Syntax

Description

jimage = im2java2d(I) converts the image I to an instance of the Java image class java.awt.image.BufferedImage. The image I can be an intensity (grayscale), RGB, or binary image.

jimage = im2java2d(X,MAP) converts the indexed image X with colormap MAP to an instance of the Java class java.awt.image.BufferedImage.

Class Support

Intensity, indexed, and RGB input images can be of class uint8, uint16, or double. Binary input images must be of class logical.

Example

This example reads an image into the MATLAB workspace and then uses im2java2d to convert it into an instance of the Java class java.awt.image.BufferedImage.


Previous page  im2java im2single Next page

© 1994-2005 The MathWorks, Inc.