[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Paint.Matrix


Le 13/09/2024 à 15:35, Fabien Bodard a écrit :
actually in the recursive process I use something like that :
Public sub Render(hPath , ...)
if  hPath is Group then
   If o.Matrix Then
         hOldMatrix = Paint.Matrix
        Paint.Matrix = Paint.Matrix.Multiply(PaintMatrix(o.Matrix[0], o.Matrix[1], o.Matrix[2], o.Matrix[3], o.Matrix[4], o.Matrix[5]))
    Endif

       Render(o, NoDraw)
    If o.Matrix Then Paint.Matrix = hOldMatrix
else
  drawpath
endif

so close to the success :-/

Did you try to multiply the other way?

Paint.Matrix = PaintMatrix(o.Matrix[0], o.Matrix[1], o.Matrix[2], o.Matrix[3], o.Matrix[4], o.Matrix[5]).Multiply(Paint.Matrix)

--
Benoît Minisini.


Follow-Ups:
Re: Paint.MatrixFabien Bodard <gambas.fr@xxxxxxxxx>
References:
Paint.MatrixFabien Bodard <gambas.fr@xxxxxxxxx>
Re: Paint.MatrixBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Paint.MatrixFabien Bodard <gambas.fr@xxxxxxxxx>
Re: Paint.MatrixFabien Bodard <gambas.fr@xxxxxxxxx>