Outdated version of the documentation. Find the latest one here.

Elementul Imagine

Pentru a adăuga o imagine, faceți clic pe pictograma de addImage Adăugare Imagine, apoi trasați un dreptunghi pe canevasul hărții, ținând apăsat butonul stâng al mouse-ului. Îi puteți configura ulterior poziția și aspectul, în fila Proprietăților Elementului.

Fila Proprietăților elementului pentru o imagine oferă următoarele funcționalități (v. figure_composer_image_1):

Figure Composer image 1:

../../../../_images/image_mainproperties.png

Fila Proprietăților pentru Elementul Imagine

You first have to select the image you want to display. There are several ways to set the image source in the Main properties area.

  1. Use the browse button browseButton of image source to select a file on your computer using the browse dialog. The browser will start in the SVG-libraries provided with QGIS. Besides SVG, you can also select other image formats like .png or .jpg.
  2. You can enter the source directly in the image source text field. You can even provide a remote URL-address to an image.
  3. From the Search directories area you can also select an image from loading previews ... to set the image source.
  4. Use the data defined button dataDefined to set the image source from a record or using a regular expression.

With the Resize mode option, you can set how the image is displayed when the frame is changed, or choose to resize the frame of the image item so it matches the original size of the image.

Puteți selecta unul din următoarele moduri:

  • Zoom: Mărește imaginea la dimensiunea cadrului, menținând în același timp raportul aspectului imaginii.

  • Stretch: Întinde imaginea pentru a se potrivi în interiorul cadrului, ignorând raportul aspectului.

  • Clip: Use this mode for raster images only, it sets the size of the image to original image size without scaling and the frame is used to clip the image, so only the part of the image inside the frame is visible.
  • Zoom and resize frame: Enlarges image to fit frame, then resizes frame to fit resultant image.
  • Redimensionează cadrul la dimensiunea imaginii: Setează dimensiunea cadrului pentru a se potrivi dimensiunii originale a imaginii, fără scalare.

Selected resize mode can disable the item options ‘Placement’ and ‘Image rotation’. The Image rotation is active for the resize mode ‘Zoom’ and ‘Clip’.

With Placement you can select the position of the image inside it’s frame. The Search directories area allows you to add and remove directories with images in SVG format to the picture database. A preview of the pictures found in the selected directories is shown in a pane and can be used to select and set the image source.

It is possible to change SVG fill/outline color and outline width when using parameterized SVG files such as those included with QGIS. If you add a SVG file you should add the following tags in order to add support for transparency:

  • fill-opacity=”param(fill-opacity)”
  • stroke-opacity=”param(outline-opacity)”

Puteți citi această postare de blog pentru a vedea un exemplu.

Images can be rotated with the Image rotation field. Activating the checkbox Sync with map checkbox synchronizes the rotation of the image (i.e., a rotated north arrow) with the rotation applied to the selected map item.

It is also possible to select a north arrow directly. If you first select a north arrow image from Search directories and then use the browse button browseButton of the field Image source, you can now select one of the north arrow from the list as displayed in figure_composer_image_2.

Note

Many of the north arrows do not have an ‘N’ added in the north arrow, this is done on purpose for languages that do not use an ‘N’ for North, so they can use another letter.

Figure Composer Image 2:

../../../../_images/north_arrows.png

Săgețile Nordului disponibile pentru selecție în Biblioteca SVG