Text | Properties

#
Bitmaps

Jpgfdraw is primarily a
application, however it is possible to insert a
image (bitmap) into your picture for background effects or if you want to annotate a
(as was done in Figure 4.1). Note that Jpgfdraw does not save the actual raster graphics data in either the
or the
file, but instead it creates a link to the original file. You can't edit the actual bitmap data in Jpgfdraw. However you can scale, rotate or shear the link. If you change the location of the file containing the bitmap, when Jpgfdraw reloads the JDR or AJR file it will prompt you for the new location or discard the link.

If you use another application to edit the bitmap whilst you have a picture with a link to it displayed in Jpgfdraw, you will need to select Bitmap->Refresh to update the image.

To insert a bitmap into your picture, first make sure you are using the |
|, and then select the menu item Bitmap->Insert Bitmap... and a dialog box will appear in which you can choose the required bitmap. The bitmap will initially appear in the top left hand corner of the
but can be |
| to a new location.

If there is insufficient memory in the
to load a bitmap, Jpgfdraw will revert to draft mode to display that bitmap. For example, in Figure 7.1 several photos have been inserted into an image. Since photos tend to be quite large, there is insufficient memory to load the final photo, so it is displayed in draft mode instead. Note that draft mode will also be used when printing or exporting to PNG, and a bitmap in draft mode will be ignored when exporting to EPS. Since LaTeX and
files only contain a link to the bitmap, draft mode should not affect exporting to those formats.

Note that the amount of memory available to any Java application is set at startup. The default maximum value is usually around 64Mb but can be changed via the
command line options. If you run Jpgfdraw from the shell script `jpgfdraw`, then you can set the environment variable `JDR_JVMOPTS` to change the default configuration. See Command Line Arguments for further details. If you are running Jpgfdraw from Windows, you will need to check the JRE documentation.

Figure 7.1: Bitmaps are displayed in draft mode when there is insufficient memory in the JRE. The area taken up by the image is displayed as a semi-transparent light grey rectangle with the bitmap's file name in square brackets.

Subsections

- Properties
- Vectorizing a Bitmap

Text | Properties