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.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to