This topic is now archived and is closed to further replies.


Drawing pixel - Managed DIrectDraw?

Recommended Posts

I know the theory behind pixel drawing, but I''ve got no idea how should I do it with managed DirectDraw. Apparently I should use the Surface.Lock method to get the array, but here''s some questions: - What LockFlags should be used? Documentation really helps here a lot - Where should I get the pitch? - What''s the syntax of setting the color to the array? - Can the Color.ToARGB() -method be used to set the correct color value? And btw why doesn''t direct draw want to initialize with 32-bit colors? I could get it going only with 16/8-bit colors. Business is business and Moses is Moses [Homesite]