MIL_ID ContextGraId, | //in |
MIL_ID DstImageBufOrListGraId | //in |
This function clears the entire specified image buffer to the foreground color of the specified 2D graphics context, or removes all the graphics from the specified 2D graphics list.
Unlike most other functions that modify a MIL object, you can call this function concurrently from multiple threads on the same MIL 2D graphics list (DstImageBufOrListGraId) without using an M_MUTEX object, as long as all the other parameters of the concurrent calls do not also share data.
Specifies the identifier of the 2D graphics context. This parameter must be set to one of the following values:
If you specify a 2D graphics list (DstImageBufOrListGraId), this parameter (ContextGraId) is ignored.
For specifying the 2D graphics context
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies that the default 2D graphics context of the current MIL application is used. Note that there is a different default 2D graphics context for each thread. (summarize)Specifies that the default 2D graphics context of the current MIL application is used. (more details...) |
||||||||||||||||||||||||||||||||||||||
MIL 2D graphics context identifier |
Specifies a valid 2D graphics context identifier, which you have allocated using MgraAlloc(). |
Specifies the identifier of a valid image buffer to clear or the identifier of a valid 2D graphics list to empty. You must have allocated the image buffer or the 2D graphics list using MbufAlloc...() or MgraAllocList(), respectively.
This image buffer must not have a region of interest (ROI) associated with it. Using an image buffer with an ROI will cause an error.
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |