Recent

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

lainz

  • Hero Member
  • *****
  • Posts: 3696
  • Leandro Diaz
Re: New version of BGRABitmap
« Reply #405 on: June 05, 2018, 12:18:01 am »
I answered to one issue. I don't see another.

Hi, the other was in BGRAControls, but I solved it reverting one change.

circular

  • Hero Member
  • *****
  • Posts: 3440
    • Personal webpage
Re: New version of BGRABitmap
« Reply #406 on: June 05, 2018, 12:27:59 am »
Oh ok.

I am waiting for you confirmation it compiles well on your side to do another release.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3696
  • Leandro Diaz
Re: New version of BGRABitmap
« Reply #407 on: June 05, 2018, 12:38:34 am »
Yes. It works fine now.

circular

  • Hero Member
  • *****
  • Posts: 3440
    • Personal webpage
Re: New version of BGRABitmap
« Reply #408 on: June 05, 2018, 12:43:58 am »
Thank you.  :)

So here is a new release (9.8.1) that fixes compilation.
https://github.com/bgrabitmap/bgrabitmap/releases
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3696
  • Leandro Diaz
Re: New version of BGRABitmap
« Reply #409 on: June 05, 2018, 12:52:00 am »
Thanks, let's play making cool stuff with it!! =)

circular

  • Hero Member
  • *****
  • Posts: 3440
    • Personal webpage
Re: New version of BGRABitmap
« Reply #410 on: June 05, 2018, 01:23:05 am »
 :)

Oh I forgot to mention that from version 9.8, the font full height is fixed on Linux.

Before that, FontFullHeight and FontEmHeight had the same effect. Both where in fact the partial font height, or em font height.

If Linux applications were setting FontFullHeight (expecting to mean in fact the em height), now the font will be smaller, as it is on Windows.

So while this make Linux and Windows version consistant, it may give surprising results on Linux.

To fix a Linux application, replace FontFullHeight by FontEmHeight when setting the font size and you will get the same size as before.

Sorry for the inconvenience. The bug has just been spotted.

8-)
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3696
  • Leandro Diaz
Re: New version of BGRABitmap
« Reply #411 on: June 05, 2018, 03:07:13 am »
Thanks!

It's getting better every day.

Attached is what I say by making a WYSWYG component that can be duplicated or placed in several places by code.

circular

  • Hero Member
  • *****
  • Posts: 3440
    • Personal webpage
Re: New version of BGRABitmap
« Reply #412 on: June 05, 2018, 10:38:36 am »
Oh I see, that's cool  :)
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3696
  • Leandro Diaz
Re: New version of BGRABitmap
« Reply #413 on: June 05, 2018, 05:44:12 pm »
Thanks! Well, I will see what can build with that..

About macOS and OpenGL, seems that it will be deprecated https://forum.lazarus.freepascal.org/index.php/topic,41492.msg287965.html#msg287965

And a fast read about it (now we must use Metal on macOS)
https://appleinsider.com/articles/18/06/04/opengl-opencl-deprecated-in-favor-of-metal-2-in-macos-1014-mojave

Or maybe Vulkan as well?

So there's no need to test that. At least I think that.

circular

  • Hero Member
  • *****
  • Posts: 3440
    • Personal webpage
Re: New version of BGRABitmap
« Reply #414 on: June 05, 2018, 11:45:14 pm »
Alright. Maybe one day we can add support for Metal on MacOS.
Conscience is the debugger of the mind

howardpc

  • Hero Member
  • *****
  • Posts: 3517
Re: New version of BGRABitmap
« Reply #415 on: June 06, 2018, 10:32:55 am »
@lainz
Your dynamic_controls.zip includes several excellent techniques, but has a serious memory leak.
I attach a project adapted from your code, which is slightly simpler with fewer dependencies and no leaks.

lainz

  • Hero Member
  • *****
  • Posts: 3696
  • Leandro Diaz
Re: New version of BGRABitmap
« Reply #416 on: June 07, 2018, 11:09:17 pm »
@lainz
Your dynamic_controls.zip includes several excellent techniques, but has a serious memory leak.
I attach a project adapted from your code, which is slightly simpler with fewer dependencies and no leaks.

Thankyou.

lainz

  • Hero Member
  • *****
  • Posts: 3696
  • Leandro Diaz
Re: New version of BGRABitmap
« Reply #417 on: June 16, 2018, 02:58:27 pm »
Hi Lainz.

Attached In Progress package; which contains a simple demo.

It is not finished yet, but thought If I upload it you can have a look see.. ;)

IMPORTANT
ps You will need to move FSVG: TBGRASVG from protected to public in BCSVGViewer

attachment updated 2nd June 2018

I forget about this. You want this to be added to BGRAControls?

josh

  • Hero Member
  • *****
  • Posts: 786
Re: New version of BGRABitmap
« Reply #418 on: June 16, 2018, 10:33:35 pm »
Hi Lainz,

The component is being added to as I find more uses for it.

I have attached the current version which you can test and include if you wish.

Some of the properties.
SVGDownXML Brings up a memo to put in the svg code for your image.
FileNameDown path and filename of the image.

Position, Maximum : Integer value that I have used to allow it to be used with some of my other code, that are not components like a volume fader.
Information1 and 2 Text information stored within the control, I tend to control external devices and I use these to add an the actual command the control does, it just makes it easier for me, whether others may find it useful??



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.

josh

  • Hero Member
  • *****
  • Posts: 786
Re: New version of BGRABitmap
« Reply #419 on: June 16, 2018, 10:53:14 pm »
quick vid showing the buttons in one scenario
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.

 

TinyPortal © 2005-2018