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

Re: Paint.Matrix


I've found my problem ... It was in the Xml tree reading in fact ...
and yes to cumulate I have just to multiply !

Now the arcs ... But I've found the solution :-)





Le ven. 13 sept. 2024 à 16:04, Fabien Bodard <gambas.fr@xxxxxxxxx> a écrit :
>
>
>
> Le ven. 13 sept. 2024 à 15:48, Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> a écrit :
>>
>> 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)
>
>
> no differences
>
> Is there a way to get the resulting matrix values ?
>
> I will try to make a smaller file exemple to get it step by step
>
>
>>
>>
>> --
>> Benoît Minisini.
>>
>>
>
>
> --
> Fabien Bodard



-- 
Fabien Bodard

Attachment: Copie d'écran_20240913_233203.png
Description: PNG image


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>
Re: Paint.MatrixBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Paint.MatrixFabien Bodard <gambas.fr@xxxxxxxxx>