
This and the following two functions affect the position of the
graphic (or part of it) in the frame. The Center image in frame
function is closely linked to the Image size independent of frame
size
function described below. If the latter is not active this
function has no effect, as in that case centering an image in a frame
does not make sense. Therefore Image size independent of frame
size
will be activated automatically (if you have not already
selected it) when you click on Center image in frame
. During
this a raster graphic frame must be active. To deactivate this
function, click a second time on the Center image in frame
icon; the Image size independent of frame size" icon will remain
selected. however.
So when both icons are selected, the size of the image will not
change at first when you make the frame larger or smaller (as the
image size is independent of the frame size). Furthermore – and
that is the effect of the Center image in frame function
– the image will be centered in the frame. This means that you
can have a white border around the image, so that the text does not
come too close to the image when you use one of the
Text flow
functions. If you shrink the frame afterwards, this will also not
alter the image size; after reformatting the text will just flow
around the frame closer to the image. Incidentally, you can also
shrink the frame to be smaller than the image to "hide
part of the
outer parts. We deliberately say hide
and not trim
here,
because the parts that are not visible as still present, and the rest
of the picture will reappear if you enlarge the frame again. In any
case, with the Center image in frame
icon selected, the middle
point of the graphic will always be in the centre of the frame. If you
would like to display another part of the picture rather than the
section near the middle, you can use the Image size independent of
frame size
or Crop or add to image
functions. (Note that
you can only adjust the width and height of a frame independently if
Proportional sizing
is switched off in the Set frame
parameters
function group.)
Calamus keeps track of whether each image is independent of frame size and whether each image should be centered in the frame. When you select a raster graphic frame, the icons will change to represent the memorized status of the image in that frame.
As a practical example, here is the working procedure to incorporate an image in a block of text. We want the text to be spaced 0.5 cm from all sides of the image. In addition the image is to be enlarged in such a way that no ugly distortions or Moiré effects arise when outputting on the printer.
Let us assume that the text frame exists already and also contains
the required text. Now draw up a raster frame of any desired size
(yes, really!) and import your image into it. It may appear completely
distorted, of course, but with the aid of the Optimize frame size
for printer
function we will get the natural proportions at a size
where each printer pixel corresponds exactly to one image pixel.
However, you may find this appears very small, perhaps. Very well,
switch on the Optimize frame to nearest factor
function and
alter both the width as well as the height of the frame to roughly
twice the size. You can do this either by eye, or quite exactly by
reference to the Coordinate display. A further click on the
Optimize frame size for printer
icon will bring the picture to
its proper proportions again. Now each image pixel corresponds to two
printer pixels in height and two in width, i.e. a total of 4 pixels.
Now to get a margin on 0.5 cm around the graphic, you have to switch
on Center image in frame
first. This will also activate the
Image size independent of frame size
function. 0.5 cm at left
and 0.5 cm at right make the frame exactly 1 cm wider. So select the
graphics frame again, if it is not active already, and then click on
the field dX
in the Coordinate display. Increase the existing
value by 1. To reach the dY
field, press the [Tab] or
[down arrow] key and add 1 to that value as well. [Return] completes
the entry and adds 0.5 cm at each side of the frame.
Warning: This only works if you have selected cm
for the Page size
field in the Set units of measurement
dialog (see Page module), as otherwise you will have half an inch (or
pica or cicero) more all round.