Click or drag to resize

JAICameraCalcReducedWidthHeightAndOffsets Method

Calculates to the wanted width and height valid width, height and offset values fulfilling these conditions: - Width must be a multiple of 16. - Width must be >= FieldWidthMinPixel. - Height must be a multiple of 1. - Height must be >= FieldHeightMinPixel. - OffsetX must be a multiple of 16. - OffsetY must be a multiple of 2. - OffsetX must be MaxWidth/2 - Width/2. - OffsetY must be MaxHeight/2 - Height/2.

Namespace: RAYLASE.Marker.CamerasPlugin.JAICamera
Assembly: RAYLASE.Marker.CamerasPlugin (in RAYLASE.Marker.CamerasPlugin.dll) Version: 2.19.0
Syntax
C#
public override 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