setcolor affects drawimage

BlitzMax Forums/BlitzMax Programming/setcolor affects drawimage

Curtastic(Posted 2004) [#1]
The setcolor command affects the drawimage command. The docs say it doesnt.
So I should always do setcolor 255,255,255 before any drawimage to make it draw normally.
Are the docs just temporary or are they going to be improved?


FlameDuck(Posted 2004) [#2]
From the DrawImage entry in the manual:

Drawing is affected by the current blend mode, color, scale and rotation.

If the blend mode is ALPHABLEND, then the image is also affected by the current alpha value.


You're right that a reference is missing from SetColor to the DrawImage cammands, but I haven't seen anything about SetColor not effecting DrawImage...

Oh, and BTW - "syncmods" seems to download new documentation, so I think it's safe to assume that the documentation is going to improve with time.


Curtastic(Posted 2004) [#3]
cool


Jim Teeuwen(Posted 2004) [#4]
I get the Alphablend reference, but how can the currently set Colour influence the drawing of an image?


RexRhino(Posted 2004) [#5]
Having setcolor effect drawimage is a useful feature. For example, if you are doing a strategy game, you could have each army have black and white units, and then tint them to each players color.

However, it is confusing the way it is shown in the documentation.


Phish(Posted 2004) [#6]
Yup, that one got me stuck for ages before I realised (I was porting a game, and my background image kept flashing different colours)! But when I did I realised it was definitely a cool feature.


{cYan|de}(Posted 2004) [#7]
its gl, glColor3f of course its gonna change the color