Capture basic drawings?

Discussion in 'Questions (Windows Mobile)' started by tsteward, Aug 17, 2008.

  1. tsteward

    tsteward Active Member Licensed User

    I want to be able to put up a form that I can draw or write on with the stylus and save it to an image. I see the cad program etc but this doesnt do what I want.

    I may have to draw a simple floor plan and write some notes.

    I'm sure this couldn't be too hard
     
  2. specci48

    specci48 Well-Known Member Licensed User

    Hi tsteward,

    I found a very simple drawing example in my archive, that was posted here in some other thread (see attachement).
    To save an image to a file, just search for these words whithin the forum.


    specci48
     

    Attached Files:

  3. klaus

    klaus Expert Licensed User

    It could be simple and become hard ?!

    It depends on what kind of drawing you want to make.
    - simple lines ?
    - thin, thick
    - double lines (walls) ?
    - du you want hatching in the walls ?
    - scaled with phyisical dimensions ?
    and so on ?

    So you should be more precise on what you need or on what you want or on what you wishes.

    The CAD program is on the way to do that but it's by far not finished. I have come back on this project these days, worked on another project in the German forum for electical sketch drawing, but this one will not fulfill your scope either.

    Best regards.
     
    Last edited: Feb 20, 2009
  4. tsteward

    tsteward Active Member Licensed User

    Ok trying to be more specific.
    I want a blank canvas that I can drag the cursor around and it will leave a line trailing it. Thats all.

    This way I could make quick notes, draw a quick scetch etc. Then i want to be able to save this canvas.

    Hope this is clearer.

    Thanks
    Tony
     
  5. tsteward

    tsteward Active Member Licensed User

    Thats what I wanted thank you. Now I just have to figure out the rest

    Thanks Guys
     
  6. klaus

    klaus Expert Licensed User

    Yes, now it's clear !

    I was thinking of something less simple, with drawing at least straight lines horizontally or vertically and placing graphically some text onto it.

    What you are willing to do, I have done this kind of sketches with the standard WM Notes application. There you can combine handdrawing and text entries and save it.

    Best regards.
     
  7. klaus

    klaus Expert Licensed User

    Last edited: Feb 20, 2009
  8. tsteward

    tsteward Active Member Licensed User

    specci48 has shown me in his example how to draw on a form. It does exactly what I want but. I have searched & read & read and am now probably more confused than before. For the life of me I just can't figure out how to save the drawing.

    Just a thought if I do ever manage to save the drawing I would also like to be able to load it and add more ink to it later. Now I am happy to draw on a blank form so I hope this is possible. Well I sure its possible ive just never done anything like this before.

    I thought i could probable use dzimage library to do a screen capture but that seems like overkill, or maybe not.

    A little more guidance please!

    Thanks
    Tony
     
  9. specci48

    specci48 Well-Known Member Licensed User

    Hi tsteward,

    you could easily save an image to a file with the ImageLibEx.
    To load a (saved) picture again assign the image-property of a control to your saved filename.

    I attached a small extended version of the draw example. Save and load the image via the menu.


    specci48
     

    Attached Files:

  10. ceaser

    ceaser Active Member Licensed User

    Drawing Functions

    Hi Klaus

    Talking about hatching drawing objects, how do you do it? I am busy with the CAD section of my Land Surveying program and the hatching routine is giving me a headache! Kopfschmerzen!:sign0085:

    Thanks
    Michael Papenhagen
    alias
    Ceaser
     
  11. klaus

    klaus Expert Licensed User

    Hi Michael,

    Sorry, but I have never made any hatching objects yet. I am afraid that I will get the same kind of headake like you. I have not yet begun with this function in my CAD program.

    If somebody else has any ideas or suggestions about this subject, I would be intersted too.

    Best regards.
     
    Last edited: Feb 20, 2009
  12. tsteward

    tsteward Active Member Licensed User

    Thank you Specci48. I had read so many post about different library's I just couldn't see my way.
     
  13. specci48

    specci48 Well-Known Member Licensed User

    I think this is a common problem. With the evolution of basic4ppc more and more useful features and dll's are available (must be about 50 at the moment), so it is hard to keep yourself up to date every time.

    But if you/we can't remember ... just ask the forum! :)


    specci48
     
  14. tsteward

    tsteward Active Member Licensed User

    Ok maybe a really dumb question but how might i clear the image to start drawing again?

    Also if I don't want the drawing to cover the whole form how can I achieve this as I would like to put a couple of buttons on the bottom of the form.

    Thanks once again
    Tony
     
  15. specci48

    specci48 Well-Known Member Licensed User

    No dump question but a short answer:
    Code:
    frmDraw.Image = ""
    specci48
     
  16. tsteward

    tsteward Active Member Licensed User

    Further to this drawing stuff
    How do I write on an image (label) and save it as part of the image?
     
  17. Cableguy

    Cableguy Expert Licensed User

    Use DrawString.....
     
  18. klaus

    klaus Expert Licensed User

    Here you have an example on how to draw a string onto an image and save it. Using the ImageLibEx.

    Best regards.
     

    Attached Files:

  19. bdiscount

    bdiscount Active Member Licensed User

    paint

    Here is a program I use to draw and save to bmp, gif or jpg. Thanks to dzt's lib. you are welcome to use it as needed. I am still working on it.
     

    Attached Files:

  20. tsteward

    tsteward Active Member Licensed User

    That's awesome thank guys. My program really looks great, still a way to go though.

    Next stupid question.
    If I load an image onto a form and the image is too large, how do I stop it from distorting?

    How do I scroll the image and still be able to edit it?
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice