SHIP:Property:image:src

From Serious Documentation
Jump to: navigation, search

Node: image

Property Data Type Description
src** String The file name of a png/jpg/tiff/bmp/gif image.

**The src property cannot be referenced in scripts: SHIPEngine has no knowledge of the image source file names that are specified in SHIPTide projects.

Images are automatically re-encoded by SHIPTide for use with SHIPEngine from their native format to a special format internal to the engine designed to decode and display quickly. This reformatting is a lossless translation, and preserves transparency and alpha channel information.

If the source image has 8 bit color (for example, GIFs and 8-bit PNGs), the re-encoding is maintained in 8-bit color using a standard 256 entry look-up table where each entry is a full 32-bit ARGB value. The palette of one 8-bit color image does not have to be related in any way to that of any other image.

If the source image has 24-bit color (for example, 24-bit PNGs or JPGs), the re-encoding maintains the full color spectrum and does not compress down to 8-bit color.

The following file types are supported:

  • JPG
  • PNG (8-bit and 24-bit)
  • BMP
  • TIFF
  • GIF (non-animated)