Java
Graphics and Image Visualization Page
![]()
Note:
If you have questions or comments, email me
at larryhr2004@yahoo.com
If you need consultancy services, visit my VisTech Software Website .
VisDraw 1.0
VisDraw is an interactive
drawinig tool.
You can use this tool to interactively draw shapes and text and save
them as SVG files or images.
Download
Click here to download. The zip file contains an executable jar file.
Run
The Java 2DImage Viewer is a stand-alone application that allows loading, saving,rendering, and manipulation of JPEG, GIF and PNG images. This applicationwas developed using the APIs developed in the book BuildingImaging Applications with Java Technology: Using AWT Imaging, Java 2D andJava Advanced Imaging. The Java 2D Viewer is an example in Chapter7 of this book, which is available as a sample chapter at the Addison-WesleyWeb site for this book. You can also download the entire source code(visframework.zip) and the Java docs from this site.
MainFeatures
Reads JPEG, GIF, and PNG images.
Supports three differentviewing modes:
Original Size:The image is displayed with original size
To Fit: Theimage is displayed to fit the viewport both in the x and y direction.
Scaled: The imageis displayed to fit the viewport with aspect ratio preserved.
Allows geometrical manipulationof the
displayed image.
Supports the
followingmanipulation functions that can be interactively performed at
any positionand in any order.
Pan
Scrolls the image whenyou drag the mouse.
Zoom
Supports Zoom inor Zoom out. The position at which the mouse is clicked is the magnificationcenter.
Rotate
Provides a slider to rotate the image.
Flip
Supports Left-to-Right,Top_to-Bottom, and Left-to-Right_Top_to-Bottom. Images can be flipped atany position.
Provides a movable Lenseto magnigy only the desired portion of the image.
Prints the displayed image.
Saves the displayed imageas JPEG.
Download
Click here to download. The zip file contains an executable jar file.
Run
You need J2SE
1.3 or higher version of Java to run this application.
To run from the
commandline, type:
java -jar 2dviewer.jar
To run from the
WindowsExplorer, double click on the jar file.
JAIImage
Viewer
This is astand-alone application with similar functionality as the Java 2D ImageViewer. You need to install the JAI package to run this application. Downloadit for free from the Sun's JavaAdvanced Imaging (JAI) home page. The JAI Image Viewercan read different image formats, including JPEG, GIF, PNG, BMP, TIFF,and FPX. It can also save the displayed image in the same formatsexcept GIF.
It is an examplein the book BuildingImaging Applications with Java Technology: Using AWT Imaging, Java 2D andJava Advanced Imaging, the source code for which is available freeat the Addison-Wesley site. The JAI rendering principles with examplesare covered in chapters 10, 11, 12, and 13. Chapter 11 is availableto download from the Addison-Wesley site.
Download
Click here to download. The zip file contains an executable jar file.
Run
To run theJAI Image Viewer app, you need J2SE 1.3 and JAI 1.1. To run from the commandline, type:
java -jar JAIviewer.jar
To run from the WindowsExplorer, double click on the jar file.
AWTImage
Viewer
This imageviewer displays images in a 4 on 1 format ( four viewports). It supportstwo simple features: Pixel statistics and Cine. This Image Viewer was writtenusing JDK 1.1 APIs. It is available as an applet as well as application.The working principles are explained in the chapters 2 and 3 of the bookBuildingImaging Applications with Java Technology: Using AWT Imaging, Java 2D andJava Advanced Imaging.
Download
This zip fileincludes the source code for both the Image Viewer applet and application.Downloadviewer.zip
Run
Here are thecommands to run the Image Viewer:
To run the application: java ImageViewer
To run the applet using the JDK: appletviewer viewer.html
To run the applet,clickImageViewer. This applet was written inJDK 1.1. If your browser doesn't run it, it may be because it doesn't supportJDK 1.1 features. You can run this applet in Netscape Communicator 4.06and later versions and Microsoft's IE.
JarImage
Browser
The Jar ImageBrowser bean lets you view, manipulate and print images from a jaror zip file. When you select a valid jar file, this bean lists the imageentries in that file. You can sort the entries by alphabetical order orby date. You can select one or more of images from this list and launchthe image viewer. The image viewer will adjust the sizes of the imagesto display all the selected images. This bean can be run as a stand-aloneapplication. The implementation uses the new Java 2 features that includesCollections,javautil.jar, Java 2D and Swing. To run this bean/application,you need to install Java 2 or later version. This bean comes with a jarfile that can be directly executed. This is a new feature in Java 2.
Visit the JarImage Browser Bean page to download the source codeand the bean
JavaImage
Browser
The Java ImageBrowser has the same display functions as the Jar Image Browser bean. WithJava Image Browser, you can load images from a local directory as wellas jar/zip file.
Visit the JavaImage Browser page to download the the bean. Thesource code is similar to Jar Image Browser.
Java2D
Beans
Currentlythere
are three beans.
ImageViewport Bean
The Image
Viewportbean allows you to view, manipulate, print and save images. It
supportsa number of features that include the ability to set the
viewing modes(original size, to_fit etc), flip, invert, magnify
and rotate images.
Visit the ImageViewport Bean page to download the bean.
GraphicsViewport Bean
Use the Graphics
Viewportbean to interactively draw shapes and text on a viewport. You
can save,serialize, save as JPEG image and print the contents of the
viewport.
Visit the GraphicsViewport Beanpage to downloadthe bean.
Image/GraphicsComposite Viewport Bean
Use the
Image/GraphicsComposite Viewport bean to display and manipulate images
as well as interactivelydraw shapes and text over them. You can save,
serialize, save as JPEG imageand print the contents of the viewport.
Visit the CompositeCompositeViewport Bean pageto download the bean.
Graphicsand
Imaging Books
Visit
my Graphicsand
Imaging books site.
You are visitor
number since
October 10,1998.
Copyright (c) 1998-2004,Lawrence Rodrigues - All rights reserved.
Last modified August 1, 2004