I looking function paint bucket type (dpaint ou ppaint)

Find quick help here to get you started with Hollywood
sinisrus
Posts: 311
Joined: Tue Apr 21, 2015 5:43 pm

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

Post by sinisrus »

Ok -1 is good for me work good
If alphachannel = true => this changes the entire image opacity no good :-(

User avatar
airsoftsoftwair
Posts: 4624
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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.

sinisrus
Posts: 311
Joined: Tue Apr 21, 2015 5:43 pm

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

Post 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 ?

User avatar
airsoftsoftwair
Posts: 4624
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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...

sinisrus
Posts: 311
Joined: Tue Apr 21, 2015 5:43 pm

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

Post by sinisrus »

yes

Post Reply