I'd like to pick your brains on how to implement freeform drawing in a paint app. Given that the command object would encompass the click down, the arbitrarily dragging around, and the release, how would this be necessarily stored in the command and drawn onto the bitmap context?
For starters, would the data simply be every pixel coordinate reported in the mousemove command put in a large list? I can't think of any other obvious approach since the user is probably not drawing long completely straight lines that could be optimized.
Would the drawing of it be to essentially stamp solid circles (of the radius that is the pen width) at every coordinate reported in the mouse move, and interpolated in between if the move jumps far enough?
Update: Clarification on what I meant when I asked how the data would be stored. I was talking about how the data in the command object would look and figured it would be a list of 'move-to' pixel coordinates to represent the action. I wasn't referring to the representation of the data in the bitmap image that was being drawn upon.