Skip to content

Instantly share code, notes, and snippets.

@brigand
Created October 24, 2012 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brigand/3943162 to your computer and use it in GitHub Desktop.
Save brigand/3943162 to your computer and use it in GitHub Desktop.
#Include <GDIp>
#Include <GDIpHelper>
SetUpGDIP()
StartDrawGDIP()
ClearDrawGDIP()
Gdip_SetSmoothingMode(G, 4)
pBrush := Gdip_BrushCreateSolid(0xffff0000)
Gdip_FillEllipse(G, pBrush, 300, 500, 200, 300)
Gdip_DeleteBrush(pBrush)
pBrush := Gdip_BrushCreateSolid(0x660000ff)
Gdip_FillRectangle(G, pBrush, 250, 80, 300, 200)
Gdip_DeleteBrush(pBrush)
EndDrawGDIP()
return
@shankarnakai
Copy link

Man, do you know if this still work on window 10?

@ekardon
Copy link

ekardon commented Feb 26, 2020

it keeps giving import error

@brigand
Copy link
Author

brigand commented Feb 26, 2020

@ekardon you need to have the Gdip.ahk file in the same directory as this script (iirc). I'm not sure where to find a copy of it.

@ekardon
Copy link

ekardon commented Feb 26, 2020

thanks i have downloaded all the necessary files and put them into same folder nothing changed :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment