[Gambas-user] Draw class

Steven Lobbezoo steven at ...1652...
Fri Aug 24 16:31:37 CEST 2007


Le vendredi 24 août 2007 15:41, Benoit Minisini a écrit :
> On vendredi 24 août 2007, Steven Lobbezoo wrote:
> > Le vendredi 24 août 2007 15:27, Benoit Minisini a écrit :
> > > On vendredi 24 août 2007, Steven Lobbezoo wrote:
> > > > Hi,
> > > >
> > > > In the latest trunk ( for 30 minutes)
> > > > the Draw.Scale function does not exists anymore !
> > > >
> > > > Kindest regards,
> > > > Steven
> > >
> > > But Draw.Scale has never existed...
> >
> > ----------------------------------------------------------------------
> > This is from one of the printing examples, it worked just great for 2
> > days
> >
> >
> > PUBLIC SUB SpinBox1_Change()
> >   DIM zoomFactor AS Float
> >   DrawingArea1.Clear
> >
> >   Draw.Begin(DrawingArea1)
> >   report.Layout
> >   draw.End
> >   SpinBox1.MaxValue = Report.Count
> >   zoomFactor = fZoom / 100
> >   DrawingArea1.Resize(printer.Width, printer.Height)
> >   Draw.Begin(DrawingArea1)
> >   IF SpinBox1.Value > Report.count THEN RETURN
> >
> >
> >
> >     'Report.Calculate
> >     'Message(Report.count) 'draw.Scale(0.1, 0.1)
> >     MRTools.ReportZoom = zoomFactor
> >     Draw.Scale(zoomFactor, zoomFactor)
> >     Report.Draw(SpinBox1.Value)
> >     'Draw.Picture(hPic, 0, 0)
> >   Draw.End
> >
> > END
> >
> > -------------------------------------------------------------------------
> >- Steven
>
> I'm kidding... Draw.Scale() and other matrix methods have been removed, as
> they do not exist in gb.gtk at the moment. They will come back as soon as
> gb.gtk can use Cairo.
>
> I could implement them by hand, but it is an huge job. Actually only
> Draw.Rotate() is a problem. I could make Draw.Translate() and Draw.Scale()
> easily.
>
> Regards,

Thanks Benoit,

I suppose you have a lot to do, so i'll change my app
for the moment : no zooming. Was not that important
anyway.

Regards,
Steven





More information about the User mailing list