Hi,
When i put a TImage component on my form and assign a jpg image of about 200KB it displays it too slowly.(that's for a P2 200Mhz). Is there any other way to put it into the memory before displaying it on the screen? Any suggestions?
You could try setting the Timage.visible to false and then
assign the jpeg. set the .visible property true afterwards
at some point.
This will not really speed up the process, but you won't
see it happening and then the image will just be there on
a refresh. So psychologically it appears to load faster.
var
AJpg : TJPEGImage;
begin
AJpg := TJPEGImage.Create;
AJpg.LoadFromFile('c:\MyJPegImage.jpg');
AImage.Picture.Graphic := AJpg; // AImage is an instance of TImage.
end;
Thanks very much!!!
I found out that a BMP image is loaded much faster than a JPG image and I think that the problem could be solved if I use LoadFromFile and open a BMP image. That way the huge BMP image won't be imported into my EXE fail.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.