Recent

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

circular

  • Hero Member
  • *****
  • Posts: 3443
    • Personal webpage
Re: New version of BGRABitmap
« Reply #435 on: August 30, 2018, 04:11:25 pm »
Strange. That seems to be version 9.8.1 of this file. I would suggest to compare with current release or master branch:
https://github.com/bgrabitmap/bgrabitmap/archive/v9.9.zip

Are there other files that are not up-to-date?
Conscience is the debugger of the mind

Lulu

  • Full Member
  • ***
  • Posts: 119
Re: New version of BGRABitmap
« Reply #436 on: August 30, 2018, 04:40:15 pm »
Yesterday, I updated only BGRABitmap with OPM and not BGRAControl and BGRAControlFX, and today, I have updated the 3 ones and now all works fine.  :)
fpc 3.0.4 Lazarus 2.04  -  AMD A8-6600K  -  Windows 10  64bits
bad english... sorry :)

Lulu

  • Full Member
  • ***
  • Posts: 119
Re: New version of BGRABitmap
« Reply #437 on: August 30, 2018, 04:58:58 pm »
Biditest, Biditest2, LayerOriginal, all color space demo works fine !
you did a good job again !
fpc 3.0.4 Lazarus 2.04  -  AMD A8-6600K  -  Windows 10  64bits
bad english... sorry :)

circular

  • Hero Member
  • *****
  • Posts: 3443
    • Personal webpage
Re: New version of BGRABitmap
« Reply #438 on: August 30, 2018, 06:13:44 pm »
Cool.  :)

Thanks for the feedback. Good to know it works for you as well  8-)
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3443
    • Personal webpage
Re: New version of BGRABitmap
« Reply #439 on: October 25, 2018, 07:28:10 am »
New version 9.9.1 :

Bezier curves/ellipses
- optimization of quadratic Bézier curve
- drawing/computing ellipses with non orthogonal axes
- aliased ellipse with pen width
- added TRationalBezierCurve (see test/rationalbezier)
- added TEasyBezierCurve and ssEasyBezier spline style (see test/bgraaggtest/bspline and toggle EasyBezier)

Improvements on layer originals
- fixes for bounds, editor bounds functions
- partial rendering of original
- added storage of subobjects and for float arrays
- more events in editor
- alternate color for right-button points

Affine boxes
- added TAffineBox.GetRectBoundsF
- added TAffineBox.GetSurface
- fixed TAffineBox.Contains when box is not orthogonal
- affine matrix from vectors

Compatibility for old Lazarus
- equal "=" operator for TRect
- functions for TRectF

Miscellaneous
- fixed bug with multishape without polygon order
- in Canvas2d, use fillmode to determine if point is in polygon
- patch for TRectF.Union
- fixed compilation for fpGUI
- fixed compilation for Linux

https://github.com/bgrabitmap/bgrabitmap/releases
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3443
    • Personal webpage
Re: New version of BGRABitmap
« Reply #440 on: November 11, 2018, 09:01:33 am »
New version of BGRABitmap v9.9.2.

Miscellaneous:
- fixed bug with strecthed PutImage on Gtk
- fixed bug with zero-size stream in TMemDirectory
- opacity scanner can own its subscanner
- added one case for aliased RoundRect

Layer originals:
- fixed runtime errors due to undefined values
- fixed storage of gradient repetition
- saving original as well when there is one layer only
- reducing a bit clickable areas of points
- improved gradient editor
- Duplicate function
- orientation of size cursor
- finer bounds of shapes and arrows

https://github.com/bgrabitmap/bgrabitmap/releases
Conscience is the debugger of the mind

Phoenix

  • Jr. Member
  • **
  • Posts: 65
Re: New version of BGRABitmap
« Reply #441 on: December 09, 2018, 05:03:11 pm »
I'm a little late  :-[ but thanks for these welcome improvements to the library  :D!!

josh

  • Hero Member
  • *****
  • Posts: 787
Re: New version of BGRABitmap
« Reply #442 on: December 11, 2018, 01:29:04 pm »
Hi Circular,

Something has happened in either bgrabitmap,bgracontrols, or latest trunk of carbon widgetset.

If I place a TBGRAShape ona  form, it is not drawn on ide or when compiled, it has no corners, border coloring does not work, and background coloring does not work.
Doing same on windows and cocoa on mac is working.

I am not sure if its latest trunk, bgrabitmap or bgracontrols.

Apologies for being vague.

Also it does the same with BCRadialProgressBar.

i386-darwin-carbon  fpc 3.3.1  svn 59789.


Update---
I have an older laz installation rev 59686; which works fine on carbon.
So I think its a Laz Issue.


Also tried cross compiling from cocoa 64 to carbon 32 and get the same problem
« Last Edit: December 11, 2018, 02:02:05 pm by josh »
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

circular

  • Hero Member
  • *****
  • Posts: 3443
    • Personal webpage
Re: New version of BGRABitmap
« Reply #443 on: December 14, 2018, 05:06:30 pm »
Hi josh. Does it help to go in the package and to a clean build?
Conscience is the debugger of the mind

josh

  • Hero Member
  • *****
  • Posts: 787
Re: New version of BGRABitmap
« Reply #444 on: December 14, 2018, 05:59:31 pm »
Hi Circular,

It does not make a difference, I have even deleted the package lib folder to remove all compiled code, and forced a clean rebuild.
Note this on Trunk version. ( same on updating my existing trunk install, and on a fresh trunk install).
My internet speed is not great, so I will attempt another FRESH Carbon Trunk install over the weekend.

I have tested RC2, and 1.8.5 of carbon i386 and these work fine, latest carbon trunk exhibits the problem, latest cocoa trunk is fine compiling for cocoa, but cross compiling back to carbon the problem is there, the shape is not drawn.

I am pretty sure its a trunk issue, and as the upcoming rc3 is due soon, I am concerned that the issue will move into RC3.

NOte used BGRABITMAP 9.8.2 and the latest, as well as 4.6.2 of bgracontrols and the latest 6 version, all are doing the same. and all work fine on rc2 and 1.8.5
« Last Edit: December 14, 2018, 06:02:25 pm by josh »
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

lainz

  • Hero Member
  • *****
  • Posts: 3699
  • Leandro Diaz
Re: New version of BGRABitmap
« Reply #445 on: December 16, 2018, 03:07:42 pm »
I'm not sure, because can be lazarus or can be FPC trunk as well.

Windsurfer

  • Sr. Member
  • ****
  • Posts: 363
    • Windsurfer
Re: New version of BGRABitmap
« Reply #446 on: December 17, 2018, 09:48:14 pm »
I have just started looking at BGRABitmap. I used fpcupdeluxe to download and install it. Bgtools failed, with the error messages below. These may be relevant to the problems above.

/home/mike/Laz_Fixes/ccr/bgragames/./sound/src/uos.pas(1364,1) Warning: (5059) Function result variable does not seem to initialized
/home/mike/Laz_Fixes/ccr/bgragames/./sound/src/uos_flat.pas(851,1) Warning: (5059) Function result variable does not seem to initialized
/home/mike/Laz_Fixes/ccr/bgragames/./sound/src/uos_flat.pas(913,2) Warning: (5059) Function result variable does not seem to initialized
/home/mike/Laz_Fixes/ccr/bgragames/./sound/src/uos_flat.pas(1095,1) Warning: (5059) Function result variable does not seem to initialized
/home/mike/Laz_Fixes/ccr/bgragames/./sound/src/uos_flat.pas(1214,1) Warning: (5059) Function result variable does not seem to initialized
/home/mike/Laz_Fixes/ccr/bgragames/bgtools.pas(260,8) Error: (5000) Identifier not found "MulDiv"
/home/mike/Laz_Fixes/ccr/bgragames/bgtools.pas(261,8) Error: (5000) Identifier not found "MulDiv"
/home/mike/Laz_Fixes/ccr/bgragames/bgtools.pas(262,8) Error: (5000) Identifier not found "MulDiv"
/home/mike/Laz_Fixes/ccr/bgragames/bgtools.pas(263,8) Error: (5000) Identifier not found "MulDiv"
bgtools.pas(359) Fatal: (10026) There were 4 errors compiling module, stopping
Fatal: (1018) Compilation aborted

I then looked in the packages and noticed and tried to install BGLControls and bgragames. Bgtools failed with the same errors.

Have I missed something?

circular

  • Hero Member
  • *****
  • Posts: 3443
    • Personal webpage
Re: New version of BGRABitmap
« Reply #447 on: December 18, 2018, 10:45:17 am »
@josh:
What about posting a test program in the bugtracker?

@Windsurfer:
The MulDiv function may not be available but it is possible to write a replacement.
Conscience is the debugger of the mind

josh

  • Hero Member
  • *****
  • Posts: 787
Re: New version of BGRABitmap
« Reply #448 on: December 18, 2018, 12:44:14 pm »
Hi

Over the weekend I installed a fresh Trunk for carbon i386 59831.

This exhibit the same.

All you need to do is create a new application and place a TBGRASHAPE component on it.
You get a Blank Square, rather than a Black Lined Diamond shape.

TShape works fine.

I had thought about posting on bugtracker, do you post issue on bugtracker for lazarus whuch are 3rd party related?

Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

Windsurfer

  • Sr. Member
  • ****
  • Posts: 363
    • Windsurfer
Re: New version of BGRABitmap
« Reply #449 on: December 18, 2018, 09:48:35 pm »
I copied the MathRound and MulDiv functions from bgraGraphics into bgTools. bgraGames package now compiles and installs. bgTools appears to need another item in the uses clause, but I am not sure which.

For reference and to save a lot of grepping, should anyone want a quick fix drop the following into bgTools, and add them to the interface section.
Code: Pascal  [Select][+][-]
  1. function MathRound(AValue: ValReal): Int64; inline;
  2. begin
  3.   if AValue >= 0 then
  4.     Result := Trunc(AValue + 0.5)
  5.   else
  6.     Result := Trunc(AValue - 0.5);
  7. end;
  8.  
  9. function MulDiv(nNumber, nNumerator, nDenominator: Integer): Integer;
  10. begin
  11.   if nDenominator = 0 then
  12.     Result := -1
  13.   else
  14.     Result := MathRound(int64(nNumber) * int64(nNumerator) / nDenominator);
  15. end;
  16.  

 

TinyPortal © 2005-2018