DalsaCameraCalcReducedWidthHeightAndOffsets Method |
Calculates to the wanted width and height valid width, height and
offset values fulfilling these conditions:
- Width must be a multiple of 8.
- Width must be >= FieldWidthMinPixel.
- Height must be a multiple of 4.
- Height must be >= FieldHeightMinPixel.
- OffsetX must be a multiple of 4.
- OffsetY must be a multiple of 4.
- OffsetX must be MaxWidth/2 - Width/2.
- OffsetY must be MaxHeight/2 - Height/2.
Namespace: RAYLASE.Marker.CamerasPlugin.TeledyneDalsaCameraAssembly: RAYLASE.Marker.CamerasPlugin (in RAYLASE.Marker.CamerasPlugin.dll) Version: 2.19.0
Syntaxpublic 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