Recent

Author Topic: [Lazpaint][Solved]How to make "Colour to alpha"?  (Read 1141 times)

devEric69

  • Hero Member
  • *****
  • Posts: 648
[Lazpaint][Solved]How to make "Colour to alpha"?
« on: December 19, 2020, 11:27:35 am »
(for memory, it can be useful to others)

In Lazpaint, emulate a menu "Colour" > "to alpha" (here, white colour towards transparent) can be done with the menu "Filter" > "Apply function...":
Code: Text  [Select][+][-]
  1. alpha(0..1) = if(red>0.5 and green>0.5 and blue>0.5,0,1)
« Last Edit: December 19, 2020, 11:33:04 am by devEric69 »
use: Linux 64 bits (Ubuntu 20.04 LTS).
Lazarus version: 2.0.4 (svn revision: 62502M) compiled with fpc 3.0.4 - fpDebug \ Dwarf3.

 

TinyPortal © 2005-2018