Class which draws a stroke representing CYIPolygonData.
Draws a stroke given CYIPolygonData, properties of the stroke and a CYIPolygonFill which is responsible for filling the stroke.
#include <graphics/YiPolygonStroke.h>
Public Member Functions | |
| CYIPolygonStroke () | |
| virtual | ~CYIPolygonStroke () |
| float | Stroke (CYIBitmap *pBitmap, CYIPolygonFill *pFiller, CYIPolygonData *pPolygonData, float fWidth, CYIGradient *pGradient, const CYIColor &color, float fMaxStrokeLength=-1) |
| CYIPolygonStroke::CYIPolygonStroke | ( | ) |
|
virtual |
| float CYIPolygonStroke::Stroke | ( | CYIBitmap * | pBitmap, |
| CYIPolygonFill * | pFiller, | ||
| CYIPolygonData * | pPolygonData, | ||
| float | fWidth, | ||
| CYIGradient * | pGradient, | ||
| const CYIColor & | color, | ||
| float | fMaxStrokeLength = -1 |
||
| ) |
Draws a stroke on the pBitmap. The stroke will be drawn using the pPolygonData which represents the vertex points of a polygon. The stroke will have a width of fWidth and will only be drawn for a maximum length of fMaxStrokeLength, these values are in pixel units. The color of the stroke will be represented by pGradient and color. The pFiller will be used to fill the stroke after processing the pPolygonData.