
Brainstorming - Vector graphics ideas
Hi all - you know Microsoft Paint (or Paintbrush), well I don't want to
rewrite this but I do want to write something similar. What I want is to be
able to draw a line or two, then move the cursor over this line, and select
the line and do something with it (ie change it's colour, it's thickness,
it's size, position). In otherwords, I want to be able to build up a list of
the lines in a document where each line in the document has/may have
different coordinates and other attributes. I want to be able to
individually manipulate all the lines with some selection tool.
What I've one so far is to create a main parent window with multiple child
windows displayed on it (each child window contains the line I've drawn with
private member variables indicating line thickness, coordinates etc). The
problem is that when what I've drawn contains 30 or 40 lines (30-40 child
windows) the programme is very slow on a redraw, main window resize etc.
I've designed my application poorly. Does anyone have any suggestions on the
approach I should adopt.
Thanks