BOOL DrvStrokeAndFillPath(
IN SURFOBJ *pso, | |
IN PATHOBJ *ppo, | |
IN CLIPOBJ *pco, | |
IN XFORMOBJ *pxo, | |
IN BRUSHOBJ *pboStroke, | |
IN LINEATTRS *plineattrs, | |
IN BRUSHOBJ *pboFill, | |
IN POINTL *pptlBrushOrg, | |
IN MIX mixFill, | |
IN FLONG flOptions | |
); |
DrvStrokeAndFillPath fills and strokes a path concurrently.
The return value is TRUE if the driver can fill the path. Otherwise, if GDI should fill the path, the return value is FALSE. If an error occurs, the return value is DDI_ERROR, and an error code is logged.
If a wide line is used for stroking, the filled area must be reduced to compensate.
The driver can return FALSE if the path or the clipping is too complex for the device to handle; in that case, GDI converts to a simpler call. For example, if the device driver has set the GCAPS_BEZIERS flag in the flGraphicsCaps member of the DEVINFO structure and then receives a path with Bezier curves, it can return FALSE; GDI will then convert the Bezier curves to lines and call DrvStrokeAndFillPath again. If the device driver returns FALSE again, GDI can convert the call into separate DrvStrokePath and DrvPaint calls.
The mix mode defines how the incoming pattern should be mixed with the data already on the device surface. The MIX data type consists of two ROP2 values packed into a single ULONG. The low-order byte defines the foreground raster operation; the next byte defines the background raster operation. For more information about raster operation codes, see the Win32 SDK.
CLIPOBJ, DrvFillPath, DrvPaint, DrvStrokePath, LINEATTRS, PATHOBJ, SURFOBJ, XFORMOBJ