Code: Select all
Result = ImageFormat(#Image)
Code: Select all
Result = ImageFormat(#Image)
I wouldn't have thought that one byte extra per stored image, or at most one .i variable extra per stored image, was a big deal.Env wrote:I do believe when you Load/CatchImage, the image format will be converted into a OS common format, so the only way to carry its original format 'index' would require the compiler to allocate more data to the PB instance of the image. This would affect all loaded images from the program amounting to more memory being used for a feature that will only be specifically used in such a way.
One byte saved is a byte not wasted you (or someone else) can use for something else.ozzie wrote: I wouldn't have thought that one byte extra per stored image, or at most one .i variable extra per stored image, was a big deal.
LastImageFormat() could return a pointer to a structure with all that informations instead of an integer then.Ramihyn_ wrote: But how much is that of use with JPG or PNG files if you dont know if it is a b/w image, 2 bit, 16-bit, 24bit, 32bit with alpha informations, which compression level was used or if it isnt even compressed.