S
S
ShinShil2017-02-23 23:23:21
.NET
ShinShil, 2017-02-23 23:23:21

What can be used to make interactive graphics (an example of a figure in word) in C #?

How can I draw a shape in C# on a PC so that it is clickable so that it can be selected and redrawn. It is necessary to make the functionality approximately the same as in Word when drawing shapes.
Currently using picture box>bitmap for each shape.
Editing is not so difficult, the question is how to determine that the user clicked on a certain figure - you don’t want to store all the coordinates and check the click on them.
There are no special problems with programming, it's just that the C# stack has never been written, I myself know C# as a language quite well. I am using Visual Studio 2015. Windows 7.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2017-02-23
@Rou1997

Bitmap is not transparent - i.e. if you draw two circles side by side, they will not intersect - one bitmap will overlap the other.

You are doing something wrong, transparency is supported there everywhere, except for displaying in a PictureBox.
Do you want some ready-made library so as not to implement the logic yourself? Will the teacher be satisfied at all?
In general, the task has many solutions:
- Embed a Word document via OLE
- Use WebBrowser in WYSIWYG (design mode), MSHTML COM component there and all that, not a bad thing, although I haven’t written anything serious on it, and it hasn’t been developed for a long time
- Look for another library
- Look not for a library, but for the source code of the graphic editor, and try to build it.
- Finally, reverse engineering Paint. :) First, "force" it to run outside of Windows\system32, etc., then work out the technologies so as not to decompile the whole thing (this is like a thesis), but simply change and add everything you need in the EXE itself.
Which of these you prefer, what will be obtained, what the teacher will approve - you know better.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question