[Gambas-user] drawing pictures

Shane buster6seven at gmail.com
Fri Sep 28 00:40:24 CEST 2018


Hi i'm trying to draw a part of an image to a picture like this


Public Backimg As Image

image loaded with file

in form show i do this

Picturebox1.Picture = New Picture(Picturebox1.Width, Picturebox1.Height)

then

Paint.Begin(Picturebox1.Picture)
Paint.DrawPicture(Backimg.Picture, 20, 20, 40, 40, Rect(40, 40, 40, 40))
Paint.End

but it will not display what am i doing wrong




More information about the User mailing list