I am trying to convert a gradient from Adobe Illustartor (AI format) to the SWF format using the SWF's SDK, I'm coding in C++.
I am able to show up to 8 gradient color but i don't understand the SDK's transformation matrix to rotate, translate and scale the gradient.
From the AI file I extract:
> the (x,y) origin of the gradient
> the length on which the gradient is display
> the angle of the gradient
> the transformation matrix of the gradient including:
-> a: Xscale (no scale when =1)
-> b: for rotation (0 when no rotation)
-> c: for rotation (0 when no rotation)
-> d: Yscale (no scale when =1)
-> x: Xtranslation
-> y: YTranslation
The SWF's SDK use a transformation matix using (Xscale,Yscale,Screw0,Screw1,centerX,centerY) how can i convert the input from the AI file into the transformation matrix of the SWF's SDK.
Click Here to Expand Forum to Full Width
Poll by Flashkit.com