MgraFill()函数

Synopsis

Perform a boundary-type seed fill.

Format

void MgraFill(GraphContId, DestImageBufId, XStart, YStart)

MIL_ID GraphContId; Graphics context identifier
MIL_ID DestImageBufId; Destination image buffer identifier
long XStart; X-coordinate of seed position
long YStart; Y-coordinate of seed position

Description

This function performs a boundary-type seed fill. It fills in an area of the target buffer, with the foreground color specified in the graphics context, starting from the specified seed position. Filling occurs on adjacent pixels (vertically and horizontally to original seed pixel) that have the same value as the original seed pixel.

The GraphContId parameter specifies the identifier of the graphics context. This parameter can be set to M_DEFAULT, in which case the default graphics context of the current MIL application is used.

The DestImageBufId parameter specifies the identifier of the buffer in which to draw. This parameter must be given a valid image buffer identifier.

The XStart and YStart parameters specify the X and Y coordinates of the seed position. If the specified point is not within an enclosed area, filling occurs until the boundaries of the buffer are encountered. The given coordinate is relative to the top-left corner of the specified target buffer. It should be valid in the specified image buffer; otherwise, the operation is not performed.

See also

MgraArcFill, MgraRectFill

《MgraFill()函数》上有1条评论

评论已关闭。