Results 1 to 7 of 7

Thread: Easy DrawImage question [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Bloged's Avatar
    Join Date
    May 2001
    Location
    Rotterdam, The Netherlands
    Posts
    330

    Easy DrawImage question [RESOLVED]

    He everyone,

    I'm using this to draw an pion on my map:

    VB Code:
    1. Dim gr As Graphics = pctBox.CreateGraphics
    2. gr.DrawImage(New Bitmap("c:\pion.gif"), iX, iY)

    But I want to use something like
    VB Code:
    1. Dim gr As Graphics = pctBox.CreateGraphics
    2. gr.DrawImage(New Bitmap(sString), iX, iY)

    Where sString contains something like c:\pion.gif

    I tried
    VB Code:
    1. Dim gr As Graphics = pctBox.CreateGraphics
    2. gr.DrawImage(New Bitmap("sString"), iX, iY)

    With no luck!

    Thanks in advance

    Grtz,

    Bloged
    Last edited by Bloged; Mar 23rd, 2004 at 05:35 PM.

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