source: trunk/j/doc/imagebuffers.html @ 2

Last change on this file since 2 was 2, checked in by piso, 18 years ago

Initial checkin.

File size: 2.4 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2
3<html>
4
5<head>
6<title>J User's Guide - Image Buffers</title>
7<LINK REL="stylesheet" HREF="j.css" TYPE="text/css">
8</head>
9
10<body>
11
12<a href="contents.html">Top</a>
13
14<hr>
15
16<h1>Image Buffers</h1>
17
18<hr>
19
20<p>
21Image buffers let you view images in several standard formats.
22<p>
23Image buffers are an experimental feature. If you want to use experimental features,
24add this line to your <a href="preferences.html">preferences</a> file:
25<pre>
26    enableExperimentalFeatures=true
27</pre>
28You can view an image by opening an image file in any of the normal ways: the
29Open File dialog, on the command line when starting j, or from a directory
30buffer. <a href="commands.html#gotoFile">gotoFile</a>, mapped by default to
31Ctrl Shift G, is particularly handy in HTML and HTTP buffers.
32<p>
33The directly supported image formats are GIF and JPEG. PNG is also supported directly
34if you're running Java 1.3.
35<p>
36If <a href="http://java.sun.com/products/jimi">JIMI</a> is in j's CLASSPATH,
37additional formats are available. If you're building j from source, you'll
38need to edit the generated shell script and/or batch file manually to add
39JimiProClasses.zip to the CLASSPATH.
40<p>
41J uses a regular expression to control which files are
42opened in Image mode. This is the default setting:
43<pre>
44    ImageMode.files=".+\\.gif|.+\\.jpe?g|.+\\.png"
45</pre>
46You can change this by specifying a different regular expression in your <a href="preferences.html">preferences</a> file.
47(You'll probably want to do this if you use JIMI.)
48<p>
49In Image mode, the command <a href="commands.html#imageFit">imageFit</a>,
50mapped by default to 'f', can be used to scale the image to fit the current
51edit window. The aspect ratio of the original image is preserved.
52<p>
53You can use <a href="commands.html#imageZoomIn">imageZoomIn</a>, mapped by
54default to '=', and  <a href="commands.html#imageZoomOut">imageZoomOut</a>,
55mapped by default to '-', to zoom in or out on the image.
56<p>
57<a href="commands.html#imageRestore">imageRestore</a>, mapped by default to
58'r', restores the image to its original size.
59<p>
60<a href="commands.html#imageCycleBackground">imageCycleBackground</a>,
61mapped by default to 'c', changes the background color of the image.
62You can use this command repeatedly to cycle through a small number of plausible
63background colors (currently gray, black and white).
64
65</body>
66
67</html>
Note: See TracBrowser for help on using the repository browser.