Return to FunctionReference page
Function
void SWF!DisplayItem_setMatrix(SWF!DisplayItem item, float a, float b, float c, float d, float x, float y);
Purpose
- Sets the SWFMatrix structure associated with a display item.
Parameters
SWF!DisplayItem item - The SWF Display Item to have its matrix set
float a - The new matrix scaleX value to set
float b - The new matrix rotate0 value to set
float c - The new matrix rotate1 value to set
float d - The new matrix scaleY value to set
float x - The new matrix translateX value to set
float y - The new matrix translateY value to set
Returns
void - No return value
Language
- C
Ming version
- (unknown). At least 0.3.0 and onwards, possibly earlier versions as well.
Notes
This function sets all members of the SWF!DisplayItem matrix structure.
- It looks like the swf specs are not clear about matrix, it has been mentioned (not verified yet though!) that if the matrix is set with the scale values to 0 and rotation not 0 or 180 degree the player doesn't work like expected.
- As workaround you can set the scaling to a value little more than 0.
The rotate0 field expects -sin(<angle>), the rotate1 field sin(<angle>) parameters.
Example
None as yet