gambas-source-code/app/examples/Drawing/Painting/Example4
Benoît Minisini c6a9cd69c2 [EXAMPLES]
* NEW: Add examples again. I hope correctly this time.


git-svn-id: svn://localhost/gambas/trunk@6726 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-12 19:58:52 +00:00

13 lines
274 B
Text

Public Sub Example4()
Dim hImg As Image
Paint.Arc(128.0, 128.0, 76.8)
Paint.Clip
hImg = Image.Load(IMAGE_NAME)
Paint.Scale(256 / hImg.Width, 256 / hImg.Height)
Paint.Brush = Paint.Image(hImg, 0, 0)
Paint.Rectangle(0, 0, 512, 512)
Paint.Fill()
End