I looking function paint bucket type (dpaint ou ppaint)

Find quick help here to get you started with Hollywood
sinisrus
Posts: 347
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: 5425
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: 347
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: 5425
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: 347
Joined: Tue Apr 21, 2015 5:43 pm

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

Post by sinisrus »

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

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

Post by airsoftsoftwair »

Code: Select all

- New: Added "ColorSource" tag to FloodFill(); if this is set together with the "AlphaChannel" tag, the
  area to be filled is determined by the color channels whereas all output will be written to the alpha
  channel; this means that the border color passed to FloodFill() must be an RGB color (or #NOCOLOR) and
  the fill color must be an alpha value between 0 and 255
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

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

Post by sinisrus »

Thank you pixy is very happy ! 😀
Post Reply