I am trying to set the color of an image containing a white object with transparent background using image:setFillColor(r, g, b). However, the resulting display is an image filled entirely with that color. Is that the normal behaviour? What I am hoping is simply the white object turning into the desired color, ignoring the transparency. [import]uid: 70056 topic_id: 15578 reply_id: 315578[/import]
With the new API’s added for setFillColor, there are a few side effects or rather you need to know what the nuances are.
the new setFillColor works on a monochrome image, Black or White. So transparency has nothing to do with it. So when you *tint* the image, the portions that are White (ON) get coloured.
This is what *I think* is how it works, if it is different, perhaps one of the engineers at Ansca can correct me on this.
till then the article here would stand correct and provide you with some info.
cheers,
?
[import]uid: 3826 topic_id: 15578 reply_id: 57525[/import]
Same issue even when I change the background to black.
Actually, I think the issue could be due to the tinting feature is yet to be available to the release build thus I am unable to get it work. [import]uid: 70056 topic_id: 15578 reply_id: 57532[/import]
Can someone verify this and if this is true, when can we expect this feature to be made available to the public including the non-subscriber? [import]uid: 70056 topic_id: 15578 reply_id: 57551[/import]
Can anyone with a subscriber account verify that the latest build support this? Thanks in advance. [import]uid: 70056 topic_id: 15578 reply_id: 57673[/import]
Hope someone can help here.
[import]uid: 70056 topic_id: 15578 reply_id: 57775[/import]
Yes it is supported now. But looks like they implemented only multiply mode of tint. I.e. if pixels are (255,255,255) and you set tint to (64,128,255) you get (64,128,255). There is no chance to add some color to (0,0,0) [import]uid: 87127 topic_id: 15578 reply_id: 65964[/import]