Results 1 to 4 of 4

Thread: [RESOLVED] Not sure how to do this, sort of a doodling app

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2009
    Posts
    258

    Resolved [RESOLVED] Not sure how to do this, sort of a doodling app

    Okay, a friend of mine asked me for this, but as I don't deal daily with graphics, I'm hitting a wall.

    The requirements are simple.

    1) I need to load multiple jpgs into memory and be able to use controls to switch back and forth between them at will.
    2) I need to be able to drag the mouse pointer across the displayed image and have a thick arrow drawn along the path. The arrow needs to be drawn in a color selected by the user.
    3) I need to be able to save each altered picture, either to the original named file or to another file, with the name selected by the user.

    I've accomplished the first part by reading the various jpg files into a list of BitmapImage objects. Then, on the screen, I have an Image element, and I simply reset the source to the desired element in the array, and voila, perfect slideshow kind of thing. (I have buttons for previous, next, and so forth.) I don't know if this is THE way I need to load the data in order to accomplish the rest, but it does work for loading and displaying.

    The second part is proving to be the issue. The best I've been able to come up with is an InkCanvas control, but there are two difficulties. The first is how to load the image into the control before editing? The second is that the lines automatically drawn are just thin lines, not thick arrows... not to mention that they are drawn as the dragging occurs, instead of being blocked out and being drawn after the mouse button is released.

    The third part flows from the second.

    This is some fairly simple and basic functionality, so I know it has to be possible, I just don't have the knowledge at this point. Can someone point me in the correct direction, either through direct response or by pointing me to an online resource? I would appreciate it greatly...

    Thanks in advance.
    Last edited by HongKongCV; Jul 11th, 2017 at 01:07 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width