[Gambas-user] drawing pictures
Benoît Minisini
g4mba5 at gmail.com
Fri Sep 28 01:47:20 CEST 2018
Le 28/09/2018 à 00:40, Shane a écrit :
> 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
>
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
First draw on the picture, and then assign it to the PictureBox1.Picture
property.
Regards,
--
Benoît Minisini
More information about the User
mailing list