Media_TSkew ( xSkew ; ySkew )
Media_TSkew lets you skew images the next time you call Media_TApply. Skew transforms rectangles into parallelograms, allowing you to shift the image’s edges in relationship to each other.
Parameter | Description |
---|---|
xSkew | Amount of horizontal skew. |
ySkew | Amount of vertical skew. |
An unskewed image is the equivalent of TSkew ( 1 ; 1 ).
As a simple example, use Media_TSkew ( -0.5 ; 0 ) to skew the image horizontally so it’s top left corner starts halfway across where the bottom edge stops (making the image look like it’s tilting to the right).
Activated by Media_TApply.
Returns
Empty string.
Examples
To skew an image horizontally the full width of the image:
Set Field [ MyTable::Response ; Media_TClear ]
Set Field [ MyTable::Response;
Media_TSkew ( -1 ; 0 ) ]
Set Field [ MyTable::Picture Result;
Media_TApply ( MyTable::Picture 1 ) ]
To skew an image vertically:
Set Field [ MyTable::Response ; Media_TClear ]
Set Field [ MyTable::Response;
Media_TSkew ( 0 ; 1 ) ]
Set Field [ MyTable::Picture Result;
Media_TApply ( MyTable::Picture 1 ) ]
To skew an image based on the values in two fields named “Skew X” and “Skew Y”:
Set Field [ MyTable::Response ; Media_TClear ]
Set Field [ MyTable::Response;
Media_TSkew ( MyTable::Skew X ;
MyTable::Skew Y ) ]
Set Field [ MyTable::Picture Result;
Media_TApply ( MyTable::Picture 1 ) ]