Jump to content

Drawing shapes over PNG image on GUI?


 Share

Recommended Posts

I was able to do it before but now for some reason I can't not sure what's wrong...

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 1050, 900, 492, 73)
$Pic1 = GUICtrlCreatePic("C:\Users\Satan\Desktop\Monopoly\board.jpg", 0, 0, 0, 0)
$Graphic1 = GUICtrlCreateGraphic(208, 157, 65, 67)
GUICtrlSetGraphic($Graphic1, $GUI_GR_PENSIZE, 4)
GUICtrlSetGraphic($Graphic1, $GUI_GR_COLOR, 0x000000)
GUICtrlSetGraphic($Graphic1, $GUI_GR_ELLIPSE, 12, 9, 25, 25)

GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit
EndSwitch
WEnd
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...