gambas-source-code/app/examples/Drawing/Painting/Example4

14 lines
274 B
Text
Raw Normal View History

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