[Gambas-user] fit jpg into drawingarea
Benoît Minisini
gambas at ...1...
Tue Jul 8 14:31:23 CEST 2014
Le 08/07/2014 14:23, bill-lancaster a écrit :
> I thought I'd sorted this a long time ago but need some help.
>
> hImage = Image.Load("/home/xxx.jpg") '(the jpg file is a scan of an A4
> document)
> Public Sub DrawingArea1_Draw()
> Draw.Image(hImage, 0, 0)
> End
>
> Whatever I try I can never fit the jpg image into the drawing area, this is
> the nearest I get:-
> Draw.Image(hImage, 0, 0, DrawingArea1.Width, DrawingArea1.Height)
> But the top of the image is missing.
>
> Where am I going wrong?
>
As usual, please post a project.
--
Benoît Minisini
More information about the User
mailing list