MasterChief
11/16/2004 10:27:00 PM
Hi Bob and thanks for answering!
The problem is that the user can draw complex shapes on top of an
arbitrary size imported bitmap. If the user decides to move these
shapes, a lot of flicker is produced. Therefore I decided to look at
other programs that perform similar tasks and how they do it. Taking a
look at Macromedia Flash and PowerPoint, one will see that they move
only the outlines of the shapes, obviously in a DrawReversibleSomething
call. A workaround would be to draw these outlines on another form with
a transparency key set, but I dont believe this is the solution the
designers at Microsoft and Macromedia have used. Furthermore, such a
solution would not be drawn reversible, which is wanted.
Another thought is that a series of complex curves, approximated to
line-1pixel-points and drawn as the object(s) are moved would probably
be too slow. I don't know. Just don't want to spend hours reinventing
wheels if others have done it before.
- Peder -
Bob Powell [MVP] wrote:
> The ControlPaint methods are very limited and are there to sidestep the
> intended behaviour of GDI+ which strangely doesn't have graphics operations
> that all graphics systems have had for two decades or more.
>
> You could try to draw a bezier onto a graphics path, flatten the path to
> create points and then use ControlPaint to draw the approximated curve but
> not having tested it I don't know how the node point cases would work.
>