Sorry if this is not the right forum, couldn't identify one to be html specific.
Simply put, how can I draw an image with transparency info, so that all non-transparent pixels are drawn using a given colour?
thanks
r.
Sorry if this is not the right forum, couldn't identify one to be html specific.
Simply put, how can I draw an image with transparency info, so that all non-transparent pixels are drawn using a given colour?
thanks
r.
thanks - but, I may be slow.. i can't see a proper solution unless it is pixel by pixel alteration, in that link. is that the case?
I believe that link says its as easy as changing the canvas' context data, specifically the GlobalAlpha value.
e.g.
context.globalAlpha = 0.5f; // Half transparency
Am I missing something?