class DrawingDraw : public Draw
DrawingDraw is a Draw able to store drawing operations of Draw and to create Drawing value that can be replayed using Draw::DrawDrawing.
void Create(int cx, int cy, bool dots = true)
void Create(Size sz, bool dots = true)
Starts a new recording session. The size of resulting Drawing is in fact only important to compute correct rescaling in Draw::DrawDrawing. dots determine DOTS flag in Draw:GetInfo(). If there are already any records stored in DrawingDraw, they are cleaned.
Size GetSize() const
Returns the size set by constructor or Create.
Drawing GetResult()
Returns actual result.
operator Drawing()
Returns GetResult().
DrawingDraw()
Default constructor. Create has to be explicitly called on default constructed DrawingDraw.
DrawingDraw(int cx, int cy, bool dots = true)
DrawingDraw(Size sz, bool dots = true)
Calls Create to start a recording session.
|