2ddrawing: There is no way of plotting an RGBA value ?!?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

2ddrawing: There is no way of plotting an RGBA value ?!?

Post by Trond »

If I want to set a particular pixel to a particular RGBA value, I can't unless I switch between drawing modes, which is inefficient.

If I use #PB_2ddrawing_AlphaChannel then the RGB doesn't get set.

If I use #PB_2ddrawing_default then the A doesn't get set.

If I use #PB_2ddrawing_alphablend it blends the RGBA value with the existing one (instead of just writing the four bytes), thus giving the wrong result (and also it must be much slower).

#PB_2DDrawing_AlphaClip obviously isn't suitable either.

I'd say this is a rather fundamental feature which should be added.