Click or drag to resize

IMcDisplayWhichSourceRegion Property

Controls whether the source region for the display is the whole image, the image AOI or a specified SourceRect.

Namespace:  MediaCy.IQL.Display.Viewer
Assembly:  MediaCy.IQL.Display.Viewer (in MediaCy.IQL.Display.Viewer.dll) Version: 10.0.6912.0
Syntax
VB
Property WhichSourceRegion As mcWhichSourceRegion
	Get
	Set

Property Value

Type: mcWhichSourceRegion
Remarks
This property is forced to mcwsrUseSourceRect if an assigment is made to the Pan, Scroll, DisplayedWidth or DisplayedHeight properties. By default this value is mcwsrWholeImage. When set to mcwsrWholeImage or mcwsrImageAoi, the Pan, Scroll, DisplayedWidth and DisplayedHeight properties are updated to reflect the new source bounds with the current Magnification. Also, in these cases AutoZoomMode is set to FALSE.
Note Note
When set to mcwsrImageAoi, the Pan, Scroll, DisplayedWidth and DisplayedHeight properties are NOT automatically updated when the AOI changes. This is by design, to allow the client to capture the bounds of an AOI for display and then still do the display of those bounds after the AOI has changed. To ensure that the current AOI bounds are used, assign mcwsrImageAoi to the WhichSourceRegion before calling for a display action (see Example). When set to mcwsrImageAoi, the SourceRect is the integral bounding Rectangle of the ImageToDisplay.Aoi property. This will be a rectangle, even if the AOI is non-rectangular or has multiple regions.
Examples
VB
Sub McDisplayEditCopyTest()
'Edit Copy AOI as a DIB
ThisApplication.ActiveImage.Display.WhichSourceRegion = mcwsrImageAoi
ThisApplication.ActiveImage.Display.EditCopy mcwcftCF_DIB
End Sub 'McDisplayEditCopyMenuTest
See Also