picture (Lepton EDA Reference Manual 1.9.18)

#### 12.4.3 picture ¶

Valid in: Schematic and Symbol files

    type x y width height angle mirrored embedded filename
    [encoded picture data
    encoded picture end]

Pos. | Field | Type/unit | Description
--- | --- | --- | ---
# | type | char | G
1 | x | int/mils | Lower left X coordinate
2 | y | int/mils | Lower left Y coordinate
3 | width | int/mils | Width of the picture
4 | height | int/mils | Height of the picture
5 | angle | int/degrees | Angle of the picture
6 | mirrored | char | Mirrored or normal picture
7 | embedded | char | Embedded or link to the picture file
8 | filename | string | path and filename of a not embedded picture
9 | encoded picture data | string | Serialized picture encoded using base64
10 | encoded picture end | string | A line containing only a dot character

- This object is a picture object. The first line contains all the picture parameters, and the second line is the path and filename of the picture. The filename is not used if the picture is embedded.
- The angle of the picture can only take on one of the following values: 0, 90, 180, 270.
- The mirrored field is an enumerated type:
  - NOT MIRRORED = 0
  - MIRRORED = 1
- The embedded field is an enumerated type:
  - NOT EMBEDDED = 0
  - EMBEDDED = 1 (not yet supported)
- The encoded picture and encoded picture end fields are only in the file if the picture is embedded in the schematic:
  - encoded picture data: This is a multiple line field. The picture is serialized and then encoded using base64. This way the encoded data uses only printable characters. This field is the result of these two operations.
  - encoded picture end : A line containing only a single dot ‘`.`’ character marks the end of the encoded picture data.

Example 1:

    G 16900 35800 1400 2175 0 0 0
    ../bitmaps/logo.jpg

A picture object with the lower left corner at (16900, 35800). The width of the image is 1400 mils, and its height is 2175 mils. The picture rotation is 0 degrees and the picture is not mirrored, neither embedded.

The picture path and filename is showed in the second line.

Example 2:

    G 16900 35800 1400 2175 0 0 1
    ../bitmaps/logo.jpg
    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
    .

A picture object with the lower left corner at (16900, 35800). The width of the image is 1400 mils, and its height is 2175 mils.

The picture rotation is 0 degrees, it is not mirrored, and it is embedded.

The picture path and filename is showed in the second line. Since this is an embedded picture, the filename and path are not used.

The encoded picture data is only an example (it is not real data). The last line containing a single dot ‘`.`’ character marks the end of the encoded picture data.