CVB.Net 14.0
ImageRect Class Reference

Image rectangle operations on a Device. More...

Inherits DeviceInterfaceBase, and IImageRect.

Public Member Functions

void Update (DeviceUpdateMode mode)
 Updates the CVB buffer according to the current device settings. More...
 
void ChangeSize (Size2D newSize, DeviceUpdateMode mode)
 Sets the newSize . More...
 
- Public Member Functions inherited from DeviceInterfaceBase
 DeviceInterfaceBase (Device device)
 Ctor. More...
 
void Update (DeviceUpdateMode mode)
 Reads out the current image format data from the device and adjusts the streaming input buffer accordingly. More...
 
void ChangeSize (Size2D newSize, DeviceUpdateMode mode)
 Sets a new size to the image rectangle and thus the streamed image. More...
 

Package Functions

 ImageRect (Device device, RingBuffer ringBuffer)
 Creates a new ImageRect object from the given device device. More...
 

Properties

Size2D SensorSize [get]
 Gets the sensor size.
 
Point2D Offset [get, set]
 Gets/sets the offset of the image rectangle.
 
Size2D Size [get]
 Gets the current rectangle size.
 
- Properties inherited from DeviceInterfaceBase
Device Parent [get]
 The Device this interface works on.
 
- Properties inherited from IDeviceInterface
Device Parent [get]
 The Device this interface works on.
 
- Properties inherited from IImageRect
Size2D SensorSize [get]
 Full size of the sensor in pixels.
 
Point2D Offset [get, set]
 Gets or sets the offset of the image rectangle from the top left corner of the sensor. More...
 
Size2D Size [get]
 Gets the size of the image rectangle. More...
 

Detailed Description

Image rectangle operations on a Device.

Constructor & Destructor Documentation

◆ ImageRect()

ImageRect ( Device  device,
RingBuffer  ringBuffer 
)
package

Creates a new ImageRect object from the given device device.

Parameters
deviceParent device.
ringBufferThe ringbuffer for updating the class on image changes.

Member Function Documentation

◆ ChangeSize()

void ChangeSize ( Size2D  newSize,
DeviceUpdateMode  mode 
)

Sets the newSize .

Parameters
newSize
mode

Implements IImageRect.

◆ Update()

void Update ( DeviceUpdateMode  mode)

Updates the CVB buffer according to the current device settings.

Parameters
modeHow to handle the device image.

Implements IImageRect.