| MIL 10 Reference
| Customize Help
| Save Settings

MdispSelect



See also
Availability
Available in MIL-Lite
Available in MIL

Available on Windows
Available on Linux

Available on Non-Matrox computer
Available on Matrox 4Sight-X
Available on Matrox 4Sight GP
Available on Matrox Supersight
function map Function map
Examples
3dmodelheightdefect.cpp
3dplanefit.cpp
addconstant.cpp
advancedmeasurement.cpp
aimdpmgrading.cpp
autodetect.cpp
binarybasedcircledetection.cpp
blobmerge.cpp
calibratedruler.cpp
calibrationfromlist.cpp
cameraevents.cpp
cameraonrobotarmcalibration.cpp
chromasens3dpixa.cpp
circlemeasurement.cpp
circleshapefinder.cpp
codegrading.cpp
colorbasedproductidentification.cpp
colorrelativecalibration.cpp
deadpixelcorrection.cpp
defectdetectionexample.cpp
dmiladdconstantmain.cpp
dmilbasic.cpp
dmilmdigprocesssharedmemory.cpp
dmilmultisystem.cpp
dmilobjecttracking.cpp
dmilremap.cpp
dmilsyncasyncmain.cpp
dotspacing.cpp
exampleinterface.cpp
examplemanager.cpp
extendeddepthoffield.cpp
fdkaddconstantmain.cpp
fdkhistogrammain.cpp
fdklutmapmain.cpp
fdkminmaxmain.cpp
fdkoffsetgainlutmapmain.cpp
fdkoffsetgainmain.cpp
fdkoffsetgainminmaxmain.cpp
fixturedcoderead.cpp
fixturingusingblob.cpp
flatfieldcorrection.cpp
foodinspection_cereal.cpp
foodinspection_mango.cpp
foodinspectioncereal.cpp
foodinspectionmango.cpp
form1.cs
form1.vb
histogramdisplay.cpp
histogramequalizeadaptive.cpp
imagedownscalingmodes.cpp
imageupscalingmodes.cpp
interactivebayer.cpp
kinect.cpp
lmigocator2000.cpp
m3dmap.cpp
m3dmap.cs
m3dmap.vb
mappbenchmark.cpp
mappbenchmark.cs
mappbenchmark.vb
mapptrace.cpp
mapptrace.cs
mapptrace.vb
matroxgatoreye.cpp
mbead.cpp
mbead.cs
mbead.vb
mblob.cpp
mblob.cs
mblob.vb
mbufbayer.cpp
mbufcolor.cpp
mbufcolor.cs
mbufcolor.vb
mbufpointeraccess.cpp
mbufpointeraccess.cs
mcal.cpp
mcal.cs
mcal.vb
mcode.cpp
mcode.cs
mcode.vb
mcol.cpp
mcol.cs
mcol.vb
mcolorwarp.cpp
mdigautofocus.cpp
mdigautofocus.cs
mdigautofocus.vb
mdiggrabmultiple.cpp
mdiggrabsequence.cpp
mdiggrabsequence.cs
mdiggrabsequence.vb
mdigprocess16vd.cpp
mdigprocessmultiple.cpp
mdispoverlay.cpp
mdispoverlay.cs
mdispoverlay.vb
mdispwindow.cpp
mdispwindowgtk.cpp
mdispwindowleveling.cpp
mdispwindowleveling.cs
mdispwindowleveling.vb
mdispwindowqt.cpp
meas2stepoverview.cpp
measoverviewexample.cpp
mechanicalpartscan.cpp
medge.cpp
medge.cs
medge.vb
mfunc.cpp
mfunc.cs
mfunc.vb
mgrainteractive.cpp
mgrainteractive.cs
mgrainteractive.vb
microsoftkinect.cpp
mildisplaymanager.cpp
milgige.cpp
mimbinarizeadaptive.cpp
mimconvolve.cpp
mimconvolve.cs
mimconvolve.vb
mimdeinterlace.cpp
mimdeinterlace.cs
mimdeinterlace.vb
mimfft.cpp
mimfft.cs
mimfft.vb
mimhistogram.cpp
mimhistogram.cs
mimhistogram.vb
mimlocatepeak1d.cpp
mimlocatepeak1d.cs
mimlocatepeak1d.vb
mimmorphic.cpp
mimpolar.cpp
mimpolar.cs
mimpolar.vb
mimprocessing.cpp
mimprocessing.cs
mimprocessing.vb
mimsegment.cpp
mimsegment.cs
mimsegment.vb
mimwarp.cpp
mimwarp.cs
mimwarp.vb
mmeas.cpp
mmeas.cs
mmeas.vb
mmet.cpp
mmet.cs
mmet.vb
mmod.cpp
mmod.cs
mmod.vb
mocr.cpp
mocr.cs
mocr.vb
monitoringapplication.cpp
morphischannelswitchingdlg.cpp
morphology.cpp
mpat.cpp
mpat.cs
mpat.vb
mpmenu.cpp
mpprocessing.cpp
mreg.cpp
mreg.cs
mreg.vb
mstr.cpp
mstr.cs
mstr.vb
mthread.cpp
mthread.cs
mthread.vb
muart.cpp
multicamera.cpp
multicastmaster.cpp
multicastmonitor.cpp
multicastslave.cpp
multipledatamatrixcoderead.cpp
multiviewannotations.cpp
objectlocalization3d.cpp
objectseparation.cpp
pcbmodelmatching.cpp
pfocus.cpp
processingfpga.cpp
productidentificationoasis.cpp
profiledisplay.cpp
publishingapplication.cpp
registeredgoldentemplate.cpp
scriptpreprocessing.cpp
segmentationandanalysisofcells.cpp
semiocr.cpp
sickrangerc.cpp
sickrangere.cpp
simpledilateerode.cpp
stereocalibration.cpp
superresolution.cpp
utilmatchcolormap.cpp
variouscodereadings.cpp
viofeaturesdemo.cpp
vioplayback.cpp
wavelettransformation.cpp
Synopsis
Select an image buffer to display.
Syntax
void MdispSelect(
MIL_ID DisplayId, //in
MIL_ID ImageBufId //in
)
Description

This function outputs the content of the specified image buffer to the specified MIL display. You can only display one image buffer at a time on a specific display.

For a windowed display, the image is presented in a window that has the same size as the image, unless such a window would not fit on the desktop or would be too small. If the image is too large to fit in the largest possible window given the selected display resolution, the top-left corner of the image will be aligned with the top-left corner of the largest possible window, and the right and bottom portion of the image, the part that exceeds the window area, will not be displayed; to view the missing portions of the image, you can pan the displayed image (see the Panning and zooming section of Chapter 21: Displaying an image for more information). If the image is smaller in size than the smallest possible window, the image will be centered in the smallest possible window, and the surrounding area will be filled with the background color (MdispControl() with M_BACKGROUND_COLOR). If the window is enlarged or maximized, the image will remain the same size and centered.

For an exclusive display, the image is presented full-screen, without a windowed border or frame, on one of the Windows desktop screens. The image is presented at the center of the screen. If the image is too large to fit on screen given the selected display resolution, the top-left corner of the image will be aligned with the top-left corner of the screen, and the right and bottom portion of the image, the part that exceeds the screen area, will not be displayed; to view the missing portions of the image, you can pan the displayed image (see the Panning and zooming section of Chapter 21: Displaying an image for more information). If the image is smaller in size than the screen area, the image will be centered on screen, and the surrounding area will be filled with the background color (MdispControl() with M_BACKGROUND_COLOR).

For an auxiliary display, the image is presented at the top-left corner of an auxiliary screen. If the image is smaller in size than the screen area, the border outside the image will be filled with the background color (MdispControl() with M_BACKGROUND_COLOR) if this is supported by the hardware. If the image is too large to fit on screen given the selected display resolution, the right and bottom portion of the image, the part that exceeds the display size, is not displayed.

You can control the displayed area using MdispControl(), MdispPan(), or MdispZoom(). For example, you can center the selected image in the display using MdispControl() with M_CENTER_DISPLAY.

You can remove an image buffer selected to the display using MdispSelect() with M_NULL. For windowed displays, this closes the associated window. For exclusive displays, this causes the display to disappear, allowing the desktop to reappear on the screen. For auxiliary and network displays, this leaves the display blank.

You can only remove the entire image buffer from the display. Therefore, when displaying a parent buffer, you cannot remove one of its child buffers from the display.

Note that it is not necessary to stop displaying the image buffer before selecting another buffer for display.

If the selected image is calibrated, the image is not physically corrected on display. If the display is associated with an overlay buffer (MdispControl() with M_OVERLAY), the calibration information of the selected buffer is copied to the overlay buffer; this allows you to draw in the overlay buffer in world units. If the calibration information of the overlay buffer is modified with McalAssociate(), MbufClear(), or some other function, the calibration information of the selected buffer will not be updated accordingly. However, changing the calibration information of the selected buffer will re-copy the calibration information of the selected buffer to the overlay buffer, even if the calibration information of the overlay buffer was manually changed.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see if there is complementary information.
Parameters
This function is not supported on the selected boards.
Parameters
DisplayId

Specifies the identifier of the display.

ImageBufId

Specifies the identifier of the image buffer to display. To be displayable, this buffer must be an image buffer that has an M_IMAGE + M_DISP attribute.

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.

Set this parameter to M_NULL to stop displaying the currently selected image buffer on the specified display.

Note that the image buffer and the display should be allocated on the same system.

Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll; mildisplay.dll.
DISP NONE