[Lazarus] TColor and Alpha channel support

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Mon Sep 26 15:01:04 CEST 2016


On 2016-09-26 13:52, Martin Schreiber via Lazarus wrote:
> Or:
> "
>  Alpha := ...; // property Alpha: TColor
> "
> for alpha per colour channel.

In that case I would make it a record type with RedAlpha, GreenAlpha and
BlueAlpha: Byte. Why?, Because TColor's range is way to large, with most
of the acceptable values being meaningless.

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


More information about the Lazarus mailing list