bitmap - Color replacement GDI C# -


replace bitmap black pixels transparency gdi c#


hey guys, im working on 2d engine renders sprites. , need replace de black pixels in bitmaps transparency; bitmap below seen.

is possible in gdi+ ? how? because i've been trying colormaps & attributes , not working fine.

as 2d engine game, efficient library? or should use one?

what about:

bitmap bm = new bitmap(width, height); bm.maketransparent(color.black); 

gdi+ not best solution game. far game not require high performance can use it. when needs power, have use libraries opengl or direct2d/direct3d.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -