Re: [Lazarus] Color and transparancy selection ?

2018-03-22 Thread Anthony Walter via Lazarus
I've written a pascal version of some color controls which I've ported to
Lazarus. Here is a link to a page with demo video:

https://www.codebot.org/delphi/?doc=9524

These controls includes a hue picker that has 2 styles (radial as shown and
bar), a saturation pick again with 2 styles, and an alpha picker. I also
have a color value slider edit box, where you can type out a R, G, B values
in bytes or floats, and it has a drop down with a left right slider that
shows you the colors.

They should be enough to create a decent pascal native color picker. Quick
example, adding the alpha picker and drop down edit is trivial:

https://s3.amazonaws.com/cache.codebot.org/videos/color-lazarus-example.mp4
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Color and transparancy selection ?

2018-03-22 Thread Vojtěch Čihák via Lazarus

Hello,
 
native TColorDialog in Qt4 has slider and edit for Alpha channel but this value 
is never in the result (i.e. TColorDialog.Color property). TColor uses upper 8 
bits for other purposes than alpha.
 
V.
__

Od: Michael Van Canneyt via Lazarus 
Komu: Lazarus mailing list 
Datum: 22.03.2018 20:49
Předmět: [Lazarus] Color and transparancy selection ?



Hello,

Is there a version of TColorDialog which allows to specify an Alpha channel ?

Michael.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Color and transparancy selection ?

2018-03-22 Thread Werner Pamler via Lazarus

Am 22.03.2018 um 21:36 schrieb Ondrej Pokorny via Lazarus:


Not in the LCL itself. Maybe you can try to build one using 
http://wiki.lazarus.freepascal.org/mbColorLib#RGB_color_pickers


I did the port to Lazarus. But no - none of them supports an alpha 
channel, they focus on color selection based on a variety of color 
models. Maybe you should have a look at BGRABitmap and associated controls.


Looking at the demo of the mbColorLib again after some time I see now a 
terrible flicker on Windows. Ondrej, I fear your change in 
double-buffering killed a majority of third-party components. It may 
take some time until all authors will fix this (and most of them left 
their babies...).


Werner

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Color and transparancy selection ?

2018-03-22 Thread Michael Van Canneyt via Lazarus



On Thu, 22 Mar 2018, Ondrej Pokorny via Lazarus wrote:


On 22.03.2018 20:49, Michael Van Canneyt via Lazarus wrote:
Is there a version of TColorDialog which allows to specify an Alpha 
channel ?


Not in the LCL itself. Maybe you can try to build one using 
http://wiki.lazarus.freepascal.org/mbColorLib#RGB_color_pickers


I didn't use it myself, it just popped up in a Google search.


Hm. I didn't find that. Must have used the wrong terms. 
However, none of them seems to support Alpha.


It looks like I will have to make one myself :(

Michael.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Color and transparancy selection ?

2018-03-22 Thread Ondrej Pokorny via Lazarus

On 22.03.2018 20:49, Michael Van Canneyt via Lazarus wrote:
Is there a version of TColorDialog which allows to specify an Alpha 
channel ?


Not in the LCL itself. Maybe you can try to build one using 
http://wiki.lazarus.freepascal.org/mbColorLib#RGB_color_pickers


I didn't use it myself, it just popped up in a Google search.

Ondrej
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Color and transparancy selection ?

2018-03-22 Thread Michael Van Canneyt via Lazarus


Hello,

Is there a version of TColorDialog which allows to specify an Alpha channel ?

Michael.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus