locked
How to make a standard .jpg image the background for a drawing RRS feed

  • Question

  • User-1360958501 posted
    G'day,
    I want to do the equivalent of drawing an 'X' on an image of a map.
    Can someone please give a quick direction how to do this.

    Thanks,

    Geoff
    Friday, October 28, 2005 8:11 PM

All replies

  • User-1360958501 posted

    To be a bit more specific....

    It works when I use nothing as the base
    <code>
    Dim objBitmap = New Bitmap(350, 200)
    Dim objGraphic As
    Graphics = Graphics.FromImage(objBitmap)
    </code>

     
    But nothing happens when I use
    <code>
    Dim objBitmap = New Bitmap(Server.MapPath("image/Map.jpg"),350,200)
    Dim objGraphic As Graphics = Graphics.FromImage(objBitmap)
    </code>

    It's probably something very obvious.  Thanks

    Friday, October 28, 2005 9:30 PM
  • User-1360958501 posted

    To be a bit more specific....

    It works when I use nothing as the base
    <code>
    Dim objBitmap = New Bitmap(350, 200)
    Dim objGraphic As
    Graphics = Graphics.FromImage(objBitmap)
    </code>

     
    But nothing happens when I use
    <code>
    Dim objBitmap = New Bitmap(Server.MapPath("image/Map.jpg"),350,200)
    Dim objGraphic As Graphics = Graphics.FromImage(objBitmap)
    </code>

    It's probably something very obvious.  Thanks


    ****** JUST REALIZED ....the folder was 'images' NOT 'image' *******
    Please ignore this pathetic request.  I'm embarrassed!!!

    Friday, October 28, 2005 9:32 PM