User Tools

Site Tools


merkalt:label_image_render

This is an old revision of the document!


Rendering of image is based on 'layers' abstraction. There are several type of layers - some applied to the whole picture, some render small object like text inside container, or image.

  1. color or backgroundColor layers fill either background or all label objects with cerain color
  2. size layer allows to setup canvas size used
  3. motif layer allows to setup an image inside the label. Specific top margin could be setup for motif layer
  4. text layers allows to add different text blocks to label. The algorythm includes the such steps as:
    1. definition of font type
    2. setting up an initial free area of the text container
    3. definition of font size to be used (based on available free space)
    4. re-calculation of text container sizes (if there are several lines)
    5. definition of horizontal offset for the certain block (if there are several lines)
    6. setup correct vertical gaps (if there are several lines)
merkalt/label_image_render.1352317971.txt.gz · Last modified: (external edit)