10.07.2015 Views

Download - Multivac!

Download - Multivac!

Download - Multivac!

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Positioning an image in the box. We define a box and place an image within the boxon the top right. The box has a width of 70 units and a height of 45 units and is placed atthe reference point (0, 0). The image is placed on the top right of the box (see Figure7.27a). Similarly, we can place the image at the center of the bottom. This case is depictedin Figure 7.27b.Fig. 7.27 Placing an image in a box subject to various positioning optionsGenerated outputOption list for PDF_fit_imagea) boxsize {70 45} position={right top}b) boxsize {70 45} position={center bottom}7.3.3 Fitting an Object into a BoxIn this section we fit the object into the box by using various fit methods. Let’s startwith the default case, where no fit method will be used and no clipping or scaling will beapplied. The image will be placed at the center of the box, 70 units wide and 45 high. Thebox will be placed at reference point (0, 0). Figure 7.28a illustrate that simple case.Decreasing the box width from 70 to 35 units doesn’t have any effect on the output.The image will remain in its original size and will exceed the box (see Figure 7.28b).Fitting an image in the center of a box. In order to center an image within a predefinedrectangle you don’t have to do any calculations, but can achieve this with suitableoptions. With position=center we place the image in the center of the box, 70 unitswide and 45 high (boxsize={70 45}). Using fitmethod=meet, the image is proportionally resizeduntil its height completely fits into the box (see Figure 7.28c).Decreasing the box width from 70 to 35 units will scale down the image until itswidth completely fits into the box (see Figure 7.28d).Completely fitting the image into a box. We can further fit the image so that it completelyfills the box. This is accomplished with fitmethod=entire. However, this combinationwill rarely be useful since the image will most probably be distorted (see Figure7.28e).Clipping an image when fitting it into the box. Using another fit method(fitmethod=clip) we can clip the object if it exceeds the target box. We decrease the boxsize to a width and height of 30 units and position the image in its original size at thecenter of the box (see Figure 7.28f).By positioning the image at the center of the box, the image will be cropped evenlyon all sides. Similary, to completely show the upper right part of the image you can positionit with position={right top} (see Figure 7.28g).7.3 Placing Images and Imported PDF Pages 159

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!