This function copies the specified model to the specified destination image buffer, starting at the top-left corner of the buffer. Once the model is copied to the destination buffer, it can then be displayed (if the destination buffer is displayable).
By making two calls to this function, one in which M_DEFAULT is used as the copy mode and the other in which M_DONT_CARE is used, it is possible to achieve the effect of overlaying the "don't care" pixels onto the original model.
Specifies the identifier of the destination image buffer in which to place the model. You must ensure that the buffer is at least as large as the model. Note that the function only supports 8-bit unsigned grayscale images.
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.
Specifies how the model will be copied. This parameter must be set to one of the values below.
For specifying how to copy the
model
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Copies the portion of the source image from which the model was extracted to the destination buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DONT_CARE + |
Copies only the "don't care" pixels of the model to the destination buffer. (more details...) |
You can add the following value to the above-mentioned value to set all pixels in the destination buffer that are not "don't care" pixels to zero.
For M_DONT_CARE to affect the destination
buffer
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_CLEAR_BACKGROUND |
Clears pixels in the resulting destination buffer that are not "don't care" pixels to zero. |
Header | Include mil.h. |
Library | Use mil.lib; milpat.lib. |
DLL | Requires mil.dll; milpat.dll. |