LearnDelphi.tv WebP images are a lossy image compression format similar to jpg, only better. Find out how to use them and other ways to improve image loading performance in Delphi.
Пікірлер: 20
@deepakdhyani64810 ай бұрын
var declaration inside the begin-edit block. Sweet!!
@codegearguru10 ай бұрын
Yes, inline var support is nice. Better performance, better readability, (when used correctly), faster to type, and I'd say "easier to refactor" if it didn't break the refactoring tools. Combined with type inferencing and it can seem like magic.
@CapeCodGunny10 ай бұрын
Thanks Alister, very interesting. I'd be interested to see the Skia benchmarks between VCL and FMX.
@codegearguru10 ай бұрын
Hi Michael, by all accounts the FMX is now much faster then previously now that is using Skia. Comparing FMX and VCL is hard because, while FMX can take more advantage of the rendering capabilities of your GPU, the VCL is pretty close to the metal (Win32). Also if you are doing any remote desktop (RDP), using the Win32 API can be very advantageous.
@johnjensen44255 ай бұрын
You mentioned a few times creating a memory leak, can you describe the leak and how it is created?
@codegearguru4 ай бұрын
Without me re-watching the video, I probably skipped the try..finally..end, so if there was an exception it would leak memory.
@nigelarmstrong25210 ай бұрын
Interesting but I did get a bit lost during your coding machinations. Can I suggest you add Skia into the video title to get more hits. Maybe it's all going to be different now with Skia but I've always wondered why we can't add a TImage component to a form and have the option to select what image types are required which then get automatically added to the uses clause.
@codegearguru10 ай бұрын
I've update the title to include Skia - cheers.
@JanDoggen10 ай бұрын
Your 'Save VCL Jpeg' is incorrect because it includes compression time. Good remark about us not being able to see the compression artifacts because of the KZbin H264 compression ;-)
@bernhardlippmann15969 ай бұрын
can you do this zooming with your app in a next version, what is max. size of *.jpgs you can handle ?
@codegearguru9 ай бұрын
I'm not sure about the maximum size for .jpg files, I would presume very large - assuming you have the memory and processing power available.
@asfaerfadfasdfsadf521110 ай бұрын
I love delphi, but yesterday i had a problem with a speedbutton on a panel. I had a LoadFile on the speedbuton and some Tstringlist i created. I have assigned a image to the speedbutton from an Imagelist and every time i clicked the speedbutton the image disappeard for a second until the open file dialog comes on front. Then i searched 2 hourse on forums and reddit what was the problem and i found a solution. If parentbackground is enabled on the panel the Speedbutton will flicker. And this is why i hate delphi. When i must guess a bug.
@pmcgee00310 ай бұрын
Did you *ask* on the forums and fb ? Lots of people want to help, and might also benefit themselves.
@ZaakaАй бұрын
Is it Possible to use DELPHI 12 and SKIA to convert webp images to jpeg? if so how?
@codegearguru3 сағат бұрын
Yes, it's possible - but I can't think how to do it off the top of my head.
@andrewbrown84639 ай бұрын
It is a shame that Delphi is still using file extensions for the Tpicture loading mechanism instead of just examining the first few bytes of the stream which would make it much more robust along with a simple convertTo(format) function
@fburton810 ай бұрын
I have gone into memo Lines to delete Memo1 more times than I’ve had hot dinners! 😾
@codegearguru10 ай бұрын
Maybe I should write an IDE plug-in...
@bruceh681410 ай бұрын
Why not just create your own descendent TMemo component that does that?
@fburton810 ай бұрын
@@bruceh6814 Yes, I thought of doing that. Even better if it could be made to replace the existing TMemo on the Standard palette.