Page 3 of 3

Re: I looking function paint bucket type (dpaint ou ppaint)

Posted: Tue Mar 30, 2021 11:49 pm
by sinisrus
Ok -1 is good for me work good
If alphachannel = true => this changes the entire image opacity no good :-(

Re: I looking function paint bucket type (dpaint ou ppaint)

Posted: Thu Apr 01, 2021 9:16 pm
by airsoftsoftwair
sinisrus wrote:
Tue Mar 30, 2021 11:49 pm
If alphachannel = true => this changes the entire image opacity no good :-(
Can you provide an MCVE? The example I posted here works fine for me. Only the area inside the circle gets an opacity of 128, the rest keeps its opacity of 255.

Re: I looking function paint bucket type (dpaint ou ppaint)

Posted: Sat Apr 03, 2021 12:39 am
by sinisrus
I want to change a color in the image:
https://amitheme.amiga-ng.org/amiga/test.png

with FloodFill(Brush,X$,Y$, -1, #YELLOW) => ok for change color
with FloodFill(Brush,X$,Y$, -1, 128, {AlphaChannel=True}) => no ok for transparency of color

How to change the transparency of a color in the image ?

Re: I looking function paint bucket type (dpaint ou ppaint)

Posted: Sat Apr 03, 2021 6:37 pm
by airsoftsoftwair
sinisrus wrote:
Sat Apr 03, 2021 12:39 am
How to change the transparency of a color in the image ?
I'm afraid that's not possible. Currently, alpha channel mode works on alpha channels only. What you want is some combined flood filling of color and alpha channel I guess...

Re: I looking function paint bucket type (dpaint ou ppaint)

Posted: Sun Apr 04, 2021 1:21 am
by sinisrus
yes