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

Re: Paint.Matrix


Le 12/09/2024 à 21:25, Fabien Bodard a écrit :
Hi,formations li

I'm currently writing a svg reader/render for my own use (In the more simplest way I can)

In a svg file you can have cumulative transformations like :

<g
 transform="matrix(0.1672889,-0.8480899,0.8480899,0.1672889,-242.96302,703.59876)"
          id="g4504">
         <g
            id="g4506"
            transform="matrix(1.0150594,0,0,1,129.84546,112.36284)">
           <path
              sodipodi:nodetypes="csssssccc"

Here you can see two group <G that apply two cumulative transformation (I have tested by commented each one)

By Now I have a problem to traduce that in the paint class..

I'm not understanding how to cumulate matrix :/...

Pleaaase help :-)

--
Fabien Bodard

You must multiply the cumulative matrices, by using the PaintMatrix returned by Paint.Matrix.

Do you know matrix calculation?

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: Paint.MatrixFabien Bodard <gambas.fr@xxxxxxxxx>
References:
Paint.MatrixFabien Bodard <gambas.fr@xxxxxxxxx>