Click or drag to resize

IMcImageSetTemplateChannels Property

Gets the collection of image channel information classes

Namespace:  MediaCy.IQL.Sets
Assembly:  MediaCy.IQL.Sets (in MediaCy.IQL.Sets.dll) Version: 10.0.6912.0
Syntax
VB
ReadOnly Property Channels As McImageSetChannels
	Get

Property Value

Type: McImageSetChannels
Remarks
Gets a collection of channel information classes giving detailed information about the image channels in this set. As image channels are added to the set through the AddFrame and AddImage methods, a member will be added to this collection for each channel added. The auto-added channel members that are image channels will only have any channel-specific information that can be set from the properties of the frames added. For instance, if the ChannelName property of the frame is set, that will be used for the the channel name, otherwise the auto-added channel name can only be something generic like "Channel 1". For this reason, it may be preferable to explicitly add the image channels prior to adding frame(s) or image(s) that will add channel(s) to the set.
Examples
VB
Sub ShowSetImageChannels()
If ImageSetTemplates.Count = 0 Then  ' no sets
Exit Sub
End If
If ImageSetTemplates(0).Channels.Count = 0 then  ' no image channels
Exit Sub
End If
' Note that the members of the channels collection are McImageSetChannel
' objects. We will use the Type property of the McImageSetChannel object to
' see which type of channel we are working with.
Dim aChannel As McImageSetChannel
Set aChannel = ImageSetTemplates(0).Channels(0)
' Since we know that the channels collection contains only image channels, we can get the
' type-specific channel object and then report image channel characteristics
Dim anImageChannel As McImageSetImageChannel
Set anImageChannel = aChannel
MsgBox anImageChannel.Name + vbCrLf + "Em. WL: " + CStr(anImageChannel.EmissionWavelength)
End Sub
See Also