Book a Demo

Author Topic: Image library, the great mystery  (Read 4379 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Image library, the great mystery
« on: June 04, 2016, 12:44:11 am »
Hi all,


I seem to recall I wrote something on this a while back but I can't find it now. So.

1) How does the ImageID column work? Is it simply a key column with randomly assigned integers, or do they actually mean something and if so, how are they calculated?

2) What about the Type column? Bitmap, yes. What else can it be?

3) Is there any way to manage the contents via the API?

Thanks,


/Uffe


/Uffe
My theories are always correct, just apply them to the right reality.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Image library, the great mystery
« Reply #1 on: June 04, 2016, 02:05:44 am »
Quote
ImageID: Primary, unique key of the image
Image: The packed image in the format described in Type
Name: The ‘Name’ column from Settings/Images...
Type: The ‘File Type’ column from Settings/Images... Bitmap or Metafile

Actually you can save the binary data always as .PNG and they will be displayed correctly. I have no real knowledge about image formats, but Bitmap seems to be “real” .png while Metafile is .emf format. Obviously the Windoze viewer does not rely on the suffix but looks into the file to detect the magic strings.

from p. 30 of my Inside book

q.