Hello,
I see lot off topic about alpha, but no ask why don't add this function
to works with 32bit image
Color = RGBA(Red, Green, Blue, Alpha)
Result= Alpha(Color)
support for 32bit image with Color= Point(x, y) and Plot(x, y,color)
Best regards and excuse me for my bad english
Thy
[Implemented] Function RGBA() and Alpha()
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
The alpha could be tagged onto the end of the existing function - 0 being default?
eg
eg
Code: Select all
x=RGB(r,g,b[,a])
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
Well, 255 as default sound betterDoubleDutch wrote:The alpha could be tagged onto the end of the existing function - 0 being default?
egCode: Select all
x=RGB(r,g,b[,a])

- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
I thought that 0 was "not transparent"?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
ahh, I thought that zero was a special case for compatibility?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
ic, so for existing PureBasic compatibility it should default to 0, but ideally it should be 255 (RGB($ff,$ff,$ff) currently generates $00ffffff, not $ffffffff).
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system