Skip to content

Instantly share code, notes, and snippets.

#Include <GDIp>
#Include <GDIpHelper>
SetUpGDIP()
StartDrawGDIP()
ClearDrawGDIP()
Gdip_SetSmoothingMode(G, 4)
pBrush := Gdip_BrushCreateSolid(0xffff0000)
Gdip_FillEllipse(G, pBrush, 300, 500, 200, 300)
#Include <GDIp>
#Include <GDIpHelper>
SetUpGDIP()
StartDrawGDIP()
ClearDrawGDIP()
Gdip_SetSmoothingMode(G, 4)
; ex. "x460 y190 cff000000 r4 s72"
#Include <GDIp>
#Include <GDIpHelper>
SetUpGDIP()
StartDrawGDIP()
ClearDrawGDIP()
Gdip_SetSmoothingMode(G, 4)
#Include <GDIp>
#Include <GDIpHelper>
SetUpGDIP()
~ctrl::
StartDrawGDIP()
ClearDrawGDIP()
Gdip_SetSmoothingMode(G, 4)
#Include <GDIp>
#Include <GDIpHelper>
SetUpGDIP()
SetTimer, update, 15000
update:
StartDrawGDIP()
#Include <GDIp>
#Include <GDIpHelper>
SetUpGDIP()
AllW := 512
AllH := 512
SpW := AllW / 9
SpH := AllH / 5
@brigand
brigand / GdipTemplate.ahk
Created October 24, 2012 21:39
Base Template
#Include <GDIp>
#Include <GDIpHelper>
SetUpGDIP()
^h::
StartDrawGDIP()
ClearDrawGDIP()
pBrush := Gdip_BrushCreateSolid(0xffff0000)
#Include <GDIp>
#Include <GDIpHelper>
JustTheBasics()
pBitmap := Gdip_CreateBitmapFromFile("superhero.jpg")
G := Gdip_GraphicsFromImage(pBitmap)
W := Gdip_GetImageWidth(pBitmap)
@brigand
brigand / TextGraphicsOptions.ahk
Created October 26, 2012 17:39
how to separate options
; from
Gdip_TextToGraphics(G, Text, "cffffffff")
;to
options = cffffffff
Gdip_TextToGraphics(G, Text, options)
;Example... 'Red' can be any variable name
Red = ffff0000
options = c%Red%
@brigand
brigand / knockout.html
Created July 2, 2013 10:40
KnockoutJs Example for video: http://youtu.be/lGWmaixWNxU
<!DOCTYPE html>
<!-- Simple KnockoutJS App
Released under the MIT License !-->
<html>
<head>
<title>My First Knockout App</title>
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap-responsive.css"/>
<link rel="stylesheet" type="text/css" href="assets/css/myfirstko.css" />
</head>