Add before LoadFromFile:
myPict.GetDescriptionFromDevice(0);
Reason:
TLazIntfImage needs the image format (bit depth, colors, ...) of the
target (your screen).
Necessity of calling GetDescriptionFromDevice(0); is not obvious for
developer. We accustomed the object is ready for use after construction
because task of constructor is creating and preparing of object for
work.
Leastwise TBimap and TRGB32Bitmap work this way.
I think IDE in similiar situations should return more obvious error
message than just execution stop. Isn't it?
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives