Click or drag to resize

BasePluginCameraCalcReducedWidthHeightAndOffsets Method

Calculates to the wanted width and height valid width, height and offset values fulfilling the conditions the camera's hardware demands when reducing its image size (e. g. width must be a multiple of 16 or something like that). If the image size is reduced, offsets are calculated to have the effective image in the center.

Namespace: RAYLASE.Marker.CamerasPlugin
Assembly: RAYLASE.Marker.CamerasPlugin (in RAYLASE.Marker.CamerasPlugin.dll) Version: 2.19.0
Syntax
C#
public abstract void CalcReducedWidthHeightAndOffsets(
	int wantedWidth,
	int wantedHeight,
	out int w,
	out int h,
	out int x,
	out int y
)

Parameters

wantedWidth  Int32
The wanted width of a ROI.
wantedHeight  Int32
The wanted height of a ROI.
w  Int32
The width fulfilling the conditions.
h  Int32
The height fulfilling the conditions.
x  Int32
The x offset fulfilling the conditions.
y  Int32
The y offset fulfilling the conditions.
See Also