Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Galfar

Pages: [1] 2 3 4 ... 25
Help & Questions / Re: MacOs 64
« on: 7 August 2019, 01:13:21 »
It's fixed now.
Many changes were needed actually, Delphi macOS and Linux 64bit targets have LongInt/LongWord 64bit in size. It stays 32bit for Win64 and for all FPC targets.

Help & Questions / Re: MacOs 64
« on: 3 August 2019, 23:56:14 »
I've updated my Delphi Community Ed. so I can have a look at this in next few days.

Thanks for the fixes, I'll add them to the repository.
TSingleImage and especially TMultiImage are not used and tested that much unfortunately.

Help & Questions / Re: Cropping image possible?
« on: 31 May 2019, 15:47:53 »
There's no simple CropImage function but you can
do the two steps that CropImage would do:

1. Create new image with size the same as desired crop rectangle (NewImage)
2. Copy part of the original image to the new one (CopyRect) with proper SrcX and SrcY parameters.

Help & Questions / Re: Convert png with transparency to a bitmap
« on: 20 March 2019, 13:38:31 »
You can call ReplaceColor multiple times, once for each color.

Could you please upload your test BMP file here?

Thanks for the report, I'll have a look at this.

Bugs And Other Insects / Re: Can't load jpeg image
« on: 21 January 2019, 17:45:19 »
I also have this problem as well.

Please try the latest version from the repository.

Help & Questions / Re: fpc compiler warnings in png decoder
« on: 21 January 2019, 14:50:39 »
"if entropy^.restarts_to_go >0 then" in imjdhuff.pas is safe.
I had it in Imaging branch used in my Deskew tool for years and probably
forgot to merge it to the main branch.

I also did tests with "ptr2int = ptruInt" for zlib and everything was fine
so I pushed both changes to the repository.

Help & Questions / Re: fpc compiler warnings in png decoder
« on: 2 December 2018, 02:23:44 »

I think best would be to try PtrUInt and check if there are any problems (loading and saving PNGs is where zlib is ued in Imaging).
Keep in mind that the comment is maybe 20 years old now from the times of Delphi v3 or something like that.

Quick google search found some updated zlib -> Pascal translation where"ptr2int = NativeUInt"  and in FPC "NativeUInt = PtrUInt".
Also when I look where ptr2int is used and to the original C code, it looks it's really just used to do pointer arithmetics in
old Delphi versions.

Thanks for the report.
I've just pushed the fix to the repository.
Nice "unusual" files to add to my test image suite :)

Bugs And Other Insects / Re: Premultiply and Unpremultiply
« on: 30 November 2018, 23:42:30 »
Thanks, that's indeed a bug.
Just pushed your fix to the repo.

Help & Questions / Re: Convert png with transparency to a bitmap
« on: 30 November 2018, 23:37:21 »
Well, if you want to replace just one color (classic color keying) then you can use ReplaceColor function from Imaging.pas unit.
I somehow assumed that by transparency you mean full alpha channel.

Thanks for the report, just pushed your fix to the repo.

Bugs And Other Insects / Re: RotateImage crash with certain angles
« on: 10 August 2018, 01:49:35 »

I've just tested your sample (0->360 degrees) and I've had no crashes
(Lazarus 1.8.4 on Win10, Imaging latest rev. from May 2018, just empty new LCL app).

What versions exactly did you use? Maybe some compiler settings are affecting this?

Pages: [1] 2 3 4 ... 25