Recent

Author Topic: New version of BGRABitmap  (Read 289206 times)

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: New version of BGRABitmap
« Reply #690 on: December 26, 2023, 12:29:45 pm »
Latest Laz/FPC Fixes  Win 32

Lazarus 3.1 (rev lazarus_3_0-11-gd3a957ea98) FPC 3.2.3 i386-win32-win32/win64

BGRABitMap via OPM 10.5.8.0

Fails to Install

Code: Pascal  [Select][+][-]
  1. unibitmap.inc(121,5) Error: Duplicate identifier "FResolutionUnit"
  2. unibitmap.inc(121,20) Hint: Identifier already defined in unit FPIMAGE: fpimage.pp at line 121
  3. unibitmap.inc(122,5) Error: Duplicate identifier "FResolutionX"
  4. unibitmap.inc(122,17) Hint: Identifier already defined in unit FPIMAGE: fpimage.pp at line 122
  5. unibitmap.inc(123,5) Error: Duplicate identifier "FResolutionY"

Added:
Tried 10.4 which works on Lazarus 2.2.7 (rev ada7a90f86) FPC 3.2.3 i386-win32-win32/win64.
10.4 DOES not work on Latest fixes.

Looks like some change in laz/fpc has broken bgrabitmap.
« Last Edit: December 26, 2023, 12:40:03 pm by Josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

paweld

  • Hero Member
  • *****
  • Posts: 1003
Re: New version of BGRABitmap
« Reply #691 on: December 26, 2023, 12:58:23 pm »
This is related to changes in FPC 3.2.3. Download BGRABitmap from the dev branch and it will work: https://github.com/bgrabitmap/bgrabitmap/tree/dev-bgrabitmap
Best regards / Pozdrawiam
paweld

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: New version of BGRABitmap
« Reply #692 on: December 26, 2023, 02:31:02 pm »
Hi

Tried dev branch, get diff error

Code: Pascal  [Select][+][-]
  1. bgrawritejpeg.pas(91,34) Error: Identifier not found "ResolutionUnitTodensity_unit"
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: New version of BGRABitmap
« Reply #693 on: December 26, 2023, 03:06:56 pm »
Hi Josh,

Thanks for notifying. I've applied a fix on the dev branch. Does it compile now?

Regards
Conscience is the debugger of the mind

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: New version of BGRABitmap
« Reply #694 on: December 26, 2023, 03:34:30 pm »
now diff error
Code: Pascal  [Select][+][-]
  1. bgrawritejpeg.pas(25,27) Error: Identifier not found "TFPWriterJPEG"
  2. bgrawritejpeg.pas(25,40) Error: class type expected, but got "<erroneous type>"
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: New version of BGRABitmap
« Reply #695 on: December 26, 2023, 04:51:45 pm »
Ah yes, I've made a mistake in the uses clause.

And now?
Conscience is the debugger of the mind

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: New version of BGRABitmap
« Reply #696 on: December 26, 2023, 05:36:05 pm »
compiling ok now :)


bgacontrols v8.0 now giving error

Code: Pascal  [Select][+][-]
  1. bgraknob.pas(162,47) Error: Incompatible types: got "TPointF" expected "Single"

reported on bgracontrols topic
« Last Edit: December 26, 2023, 05:40:35 pm by Josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: New version of BGRABitmap
« Reply #697 on: December 27, 2023, 05:41:38 am »
Conscience is the debugger of the mind

Josh

  • Hero Member
  • *****
  • Posts: 1274
Re: New version of BGRABitmap
« Reply #698 on: December 27, 2023, 08:38:03 pm »
hi

thanks for fast response, replied in bgracontrols topiv thread.

Quote
Hi

Yep compiled and all appears good.

thanks for your rapid fix  :)
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: New version of BGRABitmap
« Reply #699 on: March 06, 2024, 08:03:36 pm »
BGRABitmap has now a wonderful website with documentation!

It can be accessed from two URLs:
https://bgrabitmap.web.app/
https://bgrabitmap.github.io/

Enjoy   :)

A big thank to DomingoGP for making the proof of concept that generates the documentation using pasdoc and a big thank to michaliskambi for helping out with pasdoc.

If you love BGRABitmap, you can be featured in the testimonials and have your quote on the website!
« Last Edit: March 06, 2024, 08:28:47 pm by circular »
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4473
    • https://lainz.github.io/
Re: New version of BGRABitmap
« Reply #700 on: March 07, 2024, 12:30:13 am »
Add me as testimonial

With bgrabitmap I can build custom controls for Lazarus that looks awesome and are fast at the same time.

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: New version of BGRABitmap
« Reply #701 on: March 07, 2024, 07:28:47 am »
Cool quote indeed.  :)

Here is a preview of your quote. Feel free to let me know if there's anything you'd like to change or add to your testimonial.

I will wait for your validation and also for other quotes so that you're not the only one on the website.
« Last Edit: March 07, 2024, 08:06:00 am by circular »
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4473
    • https://lainz.github.io/
Re: New version of BGRABitmap
« Reply #702 on: March 07, 2024, 01:22:27 pm »
Hi, It's ok. Thanks.  :)

440bx

  • Hero Member
  • *****
  • Posts: 4071
Re: New version of BGRABitmap
« Reply #703 on: March 07, 2024, 01:54:34 pm »
It all looks really good.

One thing I'd like to see is a list of examples arranged in order of difficulty/complexity.  That's usually very useful and avoids a lot of frustration.

If that's already there somewhere then I'd suggest their availability to be made more visible and prominent.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

circular

  • Hero Member
  • *****
  • Posts: 4224
    • Personal webpage
Re: New version of BGRABitmap
« Reply #704 on: March 07, 2024, 03:12:57 pm »
I am glad you like the design.  :)

I take a note of your suggestion for graduated examples:
https://forum.lazarus.freepascal.org/index.php/topic,17565.msg510096.html#msg510096

By the way would you be interested in having your testimony on the website?
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018