• Introduction
  • Programmer's Guide
  • Technical Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • ic4
      • BufferPool
      • DeviceEnum
      • DeviceInfo
      • Display
      • DisplayNotation
      • DisplayRenderPosition
      • DisplayStatistics
      • DisplayType
      • EmbeddedDisplay
      • ErrorCode
      • ExternalOpenGLDisplay
      • FloatRepresentation
      • FloatingDisplay
      • FrameMetaData
      • Grabber
      • HandleObject
      • IBufferAllocator
      • IC4Exception
      • IDisplay
      • ImageBuffer
      • ImageBuffer.CopyOptions
      • ImageBufferExtensions
      • ImageBufferExtensionsOpenCvSharp
      • ImageType
      • IntRepresentation
      • Interface
      • Library
      • LogLevel
      • LogTarget
      • PixelFormat
      • PixelFormatExtensions
      • PngCompressionLevel
      • PropBoolean
      • PropCategory
      • PropCommand
      • PropEnumEntry
      • PropEnumeration
      • PropFloat
      • PropId
      • PropIdBoolean
      • PropIdCommand
      • PropIdEnumeration
      • PropIdFloat
      • PropIdInteger
      • PropIdRegister
      • PropIdString
      • PropInteger
      • PropRegister
      • PropString
      • Property
      • PropertyIncrementMode
      • PropertyMap
      • PropertyType
      • PropertyVisibility
      • QueueSink
      • QueueSinkConnectedEventArgs
      • QueueSinkEventArgs
      • QueueSinkQueueSizes
      • Sink
      • SinkMode
      • SinkType
      • SnapSink
      • SnapSinkAllocationStrategy
      • StreamSetupOption
      • StreamStatistics
      • TransportLayerType
      • VersionInfoFlags
      • VideoWriter
      • VideoWriterType

    Class DeviceEnum

    Device enumerator.

    Inheritance
    object
    HandleObject
    DeviceEnum
    Implements
    IDisposable
    Inherited Members
    HandleObject.Dispose(bool)
    HandleObject.Dispose()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: ic4
    Assembly: ic4dotnet.dll
    Syntax
    public class DeviceEnum : HandleObject, IDisposable
    Remarks

    To query the devices attached to or the interfaces of the system, use the static properties Devices and Interfaces.

    Device enumerator instances are only useful to register an event handler listening for changes to the detected device list by subscribing to the DeviceListChanged event.

    Constructors

    DeviceEnum()

    Creates a new device enumerator.

    Declaration
    public DeviceEnum()
    Exceptions
    Type Condition
    IC4Exception

    Check ErrorCode and ToString() for details.

    Properties

    Devices

    Enumerates the devices currently attached to the system.

    Declaration
    public static IReadOnlyList<DeviceInfo> Devices { get; }
    Property Value
    Type Description
    IReadOnlyList<DeviceInfo>

    A list of DeviceInfo objects representing all video capture devices.

    Exceptions
    Type Condition
    IC4Exception

    Check ErrorCode and ToString() for details.

    Interfaces

    Enumerates the interfaces present in the system.

    Interfaces represent physical connections for cameras to the computer, e.g. network adapters or USB controllers.

    Declaration
    public static IReadOnlyList<Interface> Interfaces { get; }
    Property Value
    Type Description
    IReadOnlyList<Interface>

    A list of DeviceInfo objects representing the interfaces present in the system.

    Exceptions
    Type Condition
    IC4Exception

    Check ErrorCode and ToString() for details.

    Events

    DeviceListChanged

    Occurs when a new device has been detected, or a device was detached.

    Declaration
    public event EventHandler DeviceListChanged
    Event Type
    Type Description
    EventHandler

    Implements

    IDisposable
    In this article
    Copyright ©️ 2024 The Imaging Source Europe GmbH www.theimagingsource.com