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> |
---|
21 | Image buffers let you view images in several standard formats. |
---|
22 | <p> |
---|
23 | Image buffers are an experimental feature. If you want to use experimental features, |
---|
24 | add this line to your <a href="preferences.html">preferences</a> file: |
---|
25 | <pre> |
---|
26 | enableExperimentalFeatures=true |
---|
27 | </pre> |
---|
28 | You can view an image by opening an image file in any of the normal ways: the |
---|
29 | Open File dialog, on the command line when starting j, or from a directory |
---|
30 | buffer. <a href="commands.html#gotoFile">gotoFile</a>, mapped by default to |
---|
31 | Ctrl Shift G, is particularly handy in HTML and HTTP buffers. |
---|
32 | <p> |
---|
33 | The directly supported image formats are GIF and JPEG. PNG is also supported directly |
---|
34 | if you're running Java 1.3. |
---|
35 | <p> |
---|
36 | If <a href="http://java.sun.com/products/jimi">JIMI</a> is in j's CLASSPATH, |
---|
37 | additional formats are available. If you're building j from source, you'll |
---|
38 | need to edit the generated shell script and/or batch file manually to add |
---|
39 | JimiProClasses.zip to the CLASSPATH. |
---|
40 | <p> |
---|
41 | J uses a regular expression to control which files are |
---|
42 | opened in Image mode. This is the default setting: |
---|
43 | <pre> |
---|
44 | ImageMode.files=".+\\.gif|.+\\.jpe?g|.+\\.png" |
---|
45 | </pre> |
---|
46 | You 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> |
---|
49 | In Image mode, the command <a href="commands.html#imageFit">imageFit</a>, |
---|
50 | mapped by default to 'f', can be used to scale the image to fit the current |
---|
51 | edit window. The aspect ratio of the original image is preserved. |
---|
52 | <p> |
---|
53 | You can use <a href="commands.html#imageZoomIn">imageZoomIn</a>, mapped by |
---|
54 | default to '=', and <a href="commands.html#imageZoomOut">imageZoomOut</a>, |
---|
55 | mapped 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>, |
---|
61 | mapped by default to 'c', changes the background color of the image. |
---|
62 | You can use this command repeatedly to cycle through a small number of plausible |
---|
63 | background colors (currently gray, black and white). |
---|
64 | |
---|
65 | </body> |
---|
66 | |
---|
67 | </html> |
---|