Results 1 to 10 of 10

Thread: DrawImage question [RESOLVED]

Threaded View

  1. #1

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

    DrawImage question [RESOLVED]

    Hi Everybody,

    I have an form (frmMain) with an picturebox (pctMap) on wich I draw an image (pctPion.Image). I'm using this to draw the Pion on the Map:

    VB Code:
    1. Dim gr As Graphics = pctMap.CreateGraphics
    2. gr.DrawImage(pctPion.Image, 42, 42)

    But this can only be done in the frmMain code... I've got an class Map wich should do this... How can this be solved? Is it an design error by me !

    Extra question: instead of pctPion.Image i would like to use an filename is this possible cause when I try that I get an error?!

    Thnx in advance,

    Bloged
    Last edited by Bloged; Mar 12th, 2004 at 04:37 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