Speed up image loading in TImage - delphi-7

How can I speed up image loading in TImage in Delphi 10.2?
I want to move a project from Delphi 7 to Delphi 10.2, but I'm having trouble loading files. In Delphi 10.2, images take much longer to load, and quality is lost.
In Delphi 7, it takes about 3 seconds. In Delphi 10.2, it takes 15 seconds.
From Delphi 7:
From Delphi 10.2:
This is how I load the file:
IMG.Picture.LoadFromFile(ExtractFilePath(ParamStr(0)) + IMG.Hint);
I tried to connect GDIPAPI, GDIPOBJ, GDIPUTIL, but it did not work.

Related

UI of Pentaho Report Designer too small

I've recently downloaded many versions of Pentaho Report Designer (prd) and I face the same problem : the user interface is way too small on my 1920*1080 screen.
How can I increase the dpi and the icon/font size ?
I work on Windows 10.
I use PRD 8.1, on Windows, in report-designer.bat I change the following parameter to java launcher
-Dswing.useSystemFontSettings=true
For icons, Java JDK 9 and above should be able to fix it automatically because it will scale with the Windows DPI. Although, DPI can be changed with
-Dsun.java2d.uiScale=2

Xcode 8 import pdf (vector) intro image assets not working well

I drag pdf intro image assets (universal) and building Xcode.
There is no generated png#2 png#3 . (only Pdf)
I follow this tutorial :
https://icons8.com/articles/how-to-use-vectors-in-xcode-7/
When I start app on the device images are so bad quality...
Xcode 6, 7 working ....
Maybe PDF file needs optimisation ?!
In research I found "size of svg is not important" but in this case it is (I test it).
Not sure if this helps, but from what I was reading about this, Xcode doesn't fully support vector graphics. It sounds like instead of you being able to load a vector image (.pdf) and it scales however necessary. Instead, whatever the default size of your .pdf is, it'll assume that is the 1x size, then scale the pdf to automatically create the 2x and 3x image when it's built. So its not actually scaling the original, just creating a 1x, 2x, and 3x png of the original size of your pdf. From what I'm reading, people are thinking this is done to maintain backwards compatibility. I couldn't find anything that says it has changed in Xcode 8, so I'm assuming it still works the same way.
This question seems to answer it well: How do vector images work in Xcode (i.e. pdf files)?
Hope I was able to help.
Possible hepful support links, I would suggest updating to the latest. xcode 13
xcode 8.1
xcode 8

Safari loading very slowly - high load latency

I'm working on a web app that allows users to create their own designs, and this app provides the user with a library of images to use in their design. These designs have two images, one low-res image used for the GUI and a high-res one used in the design.
It appears that Chrome/Firefox/IE only load the small thumbnails on page load, and load the larger ones on clicking the thumbnails. On Safari it loads every single image at once which has a huge impact on the page load times. Load time ranges between 5 to 30 seconds on Safari compared to 1 to 2 seconds on other browsers.
Safari debugger:
Total resources: 283
Resource size: 277 MB
Load time: 29.78s
This is Safari 7.0.5 running on OSX 10.9.4 and also impacts Safari 5.1.7 running on Windows 7.

Windows Phone 8 resolution fix

When im testing WP7.1 application on HTC 8x it has some "blank" space in system tray area. I know that its because of new resolutions, but how to fix that?
Just upgrade your project to Windows Phone 8 and recompile it. If you haven't hard-coded sizes in pixels in your layout, it should automatically fill the extra space.

DirectX in Windows 7 (11) and Windows 8 (11.1)

In Windows 8, when you minimize a game and switch to it back again, then the game will be displayed very fast. It looks like that the screen was ready even before you told your PC to show the game. When you do the same in Windows 7, then it will take a second till you see the game. This time it looks like Direct X was suspended and the Video card needs time to prepare the screen.
So the question is, does Windows 8 render the game in the background and does Windows 7 begin to render when it is going to be displayed? Or is this because a change in the Windows API?
Do you use the same hardware and DirectX run time library for your test? I don't think that's a OS related performance issue, since most of DirectX program/game will stop rendering when they were minimized in order to release CPU time to other programs

Resources