[Gambas-user] fit jpg into drawingarea
bill-lancaster
bill-lancaster at ...2231...
Tue Jul 8 14:23:16 CEST 2014
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?
--
View this message in context: http://gambas.8142.n7.nabble.com/fit-jpg-into-drawingarea-tp47333.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list