• Advertisement


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

Drawing pixel - Managed DIrectDraw?

This topic is 5014 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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]

  • Advertisement