So I'm working on application which is using TPicture. I load all picture to TBitmap in TPicture. For JPEG's i use this code:
TJPEGImage * test;
test = new TJPEGImage;
test->LoadFromFile("test.jpg");
TPicture * test2;
test2->Bitmap->Assign(test);
This code works fine. But now I want to load also...
Ok, so I make a small image with my program, but I want to check if it has changed each time I run the program, so I make new one, if it has changed. How can I do that fast, because I don't want to resize image and check.
I'm building an application, which has got 30 images(TImage) in one form. This pictures size is about 800 KB. The problem is, that program use a lot of memory(300 MB), I would understand if it would use about 50 MB of ram, because without pictures, it uses about 20 MB. What's the problem?
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.