Forum > LCL

Timage in V2.2

<< < (2/4) > >>

Handoko:
Maybe you can test the demos that already written by someone else. These demos use TImage:
- Get pixel color of an image
- Center, resize image on the screen
- Change background color of an image
- GradientFill Rectangle
- Rock, Paper, Scissors
- Bullet and asteroid collision detection
- Selection Demo
- Sprite picking and moving
- bitmap.scanline

And this is the link:
https://wiki.freepascal.org/Portal:HowTo_Demos#Graphics

I've just tested them on Lazarus 2.2.0 FPC 3.2.2 Linux GTK2, all of them show no issue with TImage. You should download those demos and try them, if you still have issue with TImage, maybe you need to reinstall your Lazarus.

Sage:

--- Quote from: Handoko on April 26, 2022, 06:06:40 am ---Maybe you can test the demos that already written by someone else. These demos use TImage:
- Get pixel color of an image
- Center, resize image on the screen
- Change background color of an image
- GradientFill Rectangle
- Rock, Paper, Scissors
- Bullet and asteroid collision detection
- Selection Demo
- Sprite picking and moving
- bitmap.scanline

And this is the link:
https://wiki.freepascal.org/Portal:HowTo_Demos#Graphics

I've just tested them on Lazarus 2.2.0 FPC 3.2.2 Linux GTK2, all of them show no issue with TImage. You should download those demos and try them, if you still have issue with TImage, maybe you need to reinstall your Lazarus.

--- End quote ---

OK, there must be something wrong with my Lazarus Installation!
I just installed Lazarus 2.2 on another computer with no issue for TImage.
I give re-installation a try.

Sage:
OK, I have just re-installed Lazarus 2.2 but the same issue exists. Does anyone have any suggestions as to what might cause this?

Handoko:
What OS do you use? Have you reboot your PC after the installation? Virus and antivirus can be troublesome. Make sure your computer is virus free. Try disable the antivirus and Windows Defender.

If you want, you can provide the binary and the sample images and email them me. I think if the binary can be run properly on other system, that could be the issue of your OS, you may need to reinstall it.

Sage:

--- Quote from: Handoko on April 26, 2022, 06:20:07 am ---What OS do you use? Have you reboot your PC after the installation? Virus and antivirus can be troublesome. Make sure your computer is virus free. Try disable the antivirus and Windows Defender.

If you want, you can provide the binary and the sample images and email them me. I think if the binary can be run properly on other system, that could be the issue of your OS, you may need to reinstall it.

--- End quote ---

So I'm using Windows 10 and I have tried re-starting my PC. I can't disable antivirus as it's managed at an admin level by our IT provider.

I have just installed a separate installation of Lazarus 2.2 but this still doesn't fix the problem. Actually very strange, I would have though that a fresh install of Lazarus would have fixed the issue!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version