CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2008
    Location
    India, Bangalore
    Posts
    157

    Arrow How to draw a small circle on image present in Imageviewer control?

    Hi friends......
    I wil load the image in to an imageviewer using
    [code]
    ImageViewer2.filename = App.Path + "\imgrock\" + a + ".jp2
    [\code]
    After loading the image to Imageviewer. I should draw a small circle on that image.
    How to do this?

    I should draw this much small circle------------------>[O]
    Plzz tell me

    Thank u
    Seema
    Prity

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How to draw a small circle on image present in Imageviewer control?

    Where? How big? What Color? Shaded?

    In other words, "How should we know what you mean?"
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jun 2008
    Location
    India, Bangalore
    Posts
    157

    Arrow Re: How to draw a small circle on image present in Imageviewer control?

    1st i wil load the image to the imageViewer using the below code
    Code:
    mageViewer2.filename = App.Path + "\imgrock\" + "img1.bmp"
    After loading the image to Imageviewer. I should draw a small circle on that image.
    How to do this?

    I should draw this much small circle------------------>[O]
    The circle can be any color.

    Well Mr.Dglinna u had asked me---->
    Where? How big? What Color? Shaded?

    Where ever u click on the image there one circle should be drawn. It should be small not big. it should be like alphabet "o" that much small or less than that is also ok.

    Shade any shade is ok but the circle should be visible to the user when ever and where ever user clicks on the image... It should happen onclick event.


    Thank u
    Plzz tell me the solution
    Seema
    Prity

  4. #4
    Join Date
    Jul 2008
    Posts
    70

    Re: How to draw a small circle on image present in Imageviewer control?

    Could you create a second image and onclick you unhide it and then place it above your other image?

  5. #5
    Join Date
    Jun 2008
    Location
    India, Bangalore
    Posts
    157

    Arrow Re: How to draw a small circle on image present in Imageviewer control?

    See i tell u clearly any image i take on that i should be capable of drawing the circle thats it. I cant hide or unhide. well i will be getting the images continuously. when wil click the stop button that time i wil draw a circle on the image which is present there.......
    Prity

  6. #6
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: How to draw a small circle on image present in Imageviewer control?

    Measure the SIZE of each image, add a border, and draw the circle.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  7. #7
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: How to draw a small circle on image present in Imageviewer control?

    What I already did tell to Miss Prity by email answers:

    The ImageViewer control she is using seems not to be capable of drawing onto the image.
    Also it does not expose an hDC handle or similar which would allow some API functions to draw onto the bitmap.

    Whatever the idea behind this is, you cannot do that with the ImageViewer control.

    If the image was to be loaded into a picturebox, things were different.

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

Featured