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.CamerasPluginAssembly: RAYLASE.Marker.CamerasPlugin (in RAYLASE.Marker.CamerasPlugin.dll) Version: 2.19.0
Syntaxpublic 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