Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.swt.examples/doc-html/swt_imageanalyzer_ex.html')
-rwxr-xr-xexamples/org.eclipse.swt.examples/doc-html/swt_imageanalyzer_ex.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/examples/org.eclipse.swt.examples/doc-html/swt_imageanalyzer_ex.html b/examples/org.eclipse.swt.examples/doc-html/swt_imageanalyzer_ex.html
new file mode 100755
index 0000000000..c42c4b5c59
--- /dev/null
+++ b/examples/org.eclipse.swt.examples/doc-html/swt_imageanalyzer_ex.html
@@ -0,0 +1,56 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <title>SWT - Image Analyzer Example</title>
+</head>
+<body>
+
+<h2>Standard Widget Toolkit (SWT) Standalone Example - Image Analyzer</h2>
+
+<h3>Introduction</h3>
+<p>The ImageAnalyzer opens image files and displays the visual contents of
+the file along with a summary of the data in the image file.&nbsp; The
+user can make adjustments to various elements of the image such as scaling
+and Alpha blending and can save these changes to a file.
+</p>
+
+<h3>Running the example</h3>
+<p>If the Example Launcher is installed, select the Image Analyzer item from the Standalone category and click Run.&nbsp;
+Otherwise, install and run the example manually as per the
+<a href="swt_manual_setup.html">Standalone Examples Manual Setup</a> instructions.&nbsp; The executable class is
+<code>org.eclipse.swt.examples.imageanalyzer.ImageAnalyzer</code>.
+</p>
+
+<h3>Details</h3>
+<p>
+The ImageAnalyzer will load and display image files of type GIF, JPEG, BMP, ICO, and PNG.&nbsp;
+To open a file, use the File->Open... menu item, and select the image file in the FileDialog.
+</p><p>
+If the file is an interlaced GIF or PNG or a progressive JPEG, and Incremental Display is selected,
+then the ImageAnalyzer displays the image increments as they are being loaded.
+</p><p>
+If the file contains an animated GIF, then the Next, Previous, and Animate buttons become enabled,
+and they can be used to cycle through the images in the file, or animate them.&nbsp; If a GIF defines a background color,
+as many animated GIFs do, selecting Background will use the GIF's background color.
+</p><p>
+If the image has transparency (possible with GIF, PNG, or ICO), then selecting Display Mask will draw the image's transparency
+mask to the right of the image.&nbsp; You can change the background color of the ImageAnalyzer to see the transparency work.&nbsp;
+To turn off the transparency, deselect Display Transparency.
+</p><p>
+After an image is loaded, it can be scaled or have alpha transparency applied, using the Scale and Alpha-K combos,
+and the Alpha menu. File->Reopen restores scaling and Alpha to their default values and reloads the current image file.
+</p><p>
+File->Save As... can be used to save the currently loaded image to another type of image file.&nbsp; If the image has transparency,
+File->Save Mask As... saves the image's transparency mask.
+</p><p>
+When SWT loads an image file, an instance of org.eclipse.swt.graphics.ImageData is created.&nbsp; (In the case of an ICO file or
+multi-image GIF, an array of ImageData instances is created).&nbsp; The ImageAnalyzer displays all of the data stored in the ImageData
+instance(s) for the currently loaded image file, including the pixel data.&nbsp; Hovering over a pixel in the image display will show the RGB
+color data for that pixel.&nbsp; For certain images (particularly animated GIFs) additional data is stored in the org.eclipse.swt.graphics.ImageLoader
+instance used to load the image.&nbsp; The ImageAnalyzer displays this data as well.
+</p>
+
+<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation 2000" BORDER=0 height=12 width=195></a></p>
+</body>
+</html>

Back to the top