[Gambas-user] Bad Image format

Fabien Bodard gambas.fr at ...626...
Tue Dec 9 11:40:49 CET 2014


Le 8 déc. 2014 22:35, "Paul Horechuk" <horechuk at ...981...> a écrit :
>
> Kubuntu 14.04 LTS x86_64
> Gambas 3.6.2
> ---------------------------------------------------
> Dim PageImage as Image
>
> ...
>
> Public Sub Preview()
> PageImage = New Image As "PageImage"
> Paint.Begin(PageImage)  ' Bad Format
>    PageImage.Load("picture.jpg", 0, 0, 100, 100)
> Paint.End
> End
>

This code  is all bad... Sorry
Pageimage= image.load("picture.jpg")

In drawingarea_draw

Public sub drawingarea1_draw()
Paint.drawimage(paintimage,0,0)

End
I hope that is what you want to achieve.... In other case give us more code
please

Regards

> ---------------------------------------------------
>
> Could someone please explain?
>
> --
> Think Free ...
>     Use Open Source Software
>
>
>
------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



More information about the User mailing list