Name
TranslatePath -- translate a path (V5.0)
Synopsis
void TranslatePath(struct TranslatePathCtrl *ctrl);
Function
This function has to translate the specified path by the specified offsets. TranslatePath() receives a pointer to a struct TranslatePathCtrl which looks like this:

 
struct TranslatePathCtrl
{
    void *Path;  // [in/out]
    int Pad;     // [unused]
    double TX;   // [in]
    double TY;   // [in]
};

Here's a description of the individual structure members:

Path:
The path which has to be translated. This is a pointer to a disparate array consisting of a variable number of path commands and their arguments. See DrawPath for details. Your implementation of TranslatePath() has to retrieve all coordinates from this buffer and update them with the translated coordinates.

TX:
Amount of pixels this path should be translated on the x-axis. This can also be negative.

TY:
Amount of pixels this path should be translated on the y-axis. This can also be negative.

Inputs
ctrl
pointer to a struct TranslatePathCtrl which contains information about the path and receives the translated path

Show TOC