Operator Reference

zoom_regionzoom_regionZoomRegionZoomRegionzoom_region (Operator)

zoom_regionzoom_regionZoomRegionZoomRegionzoom_region — Zoom a region.

Signature

zoom_region(Region : RegionZoom : ScaleWidth, ScaleHeight : )

Herror zoom_region(const Hobject Region, Hobject* RegionZoom, double ScaleWidth, double ScaleHeight)

Herror T_zoom_region(const Hobject Region, Hobject* RegionZoom, const Htuple ScaleWidth, const Htuple ScaleHeight)

void ZoomRegion(const HObject& Region, HObject* RegionZoom, const HTuple& ScaleWidth, const HTuple& ScaleHeight)

HRegion HRegion::ZoomRegion(double ScaleWidth, double ScaleHeight) const

static void HOperatorSet.ZoomRegion(HObject region, out HObject regionZoom, HTuple scaleWidth, HTuple scaleHeight)

HRegion HRegion.ZoomRegion(double scaleWidth, double scaleHeight)

def zoom_region(region: HObject, scale_width: float, scale_height: float) -> HObject

Description

zoom_regionzoom_regionZoomRegionZoomRegionzoom_region enlarges or reduces the regions given in RegionRegionRegionregionregion in the x- and y-direction by the given scale factors ScaleWidthScaleWidthScaleWidthscaleWidthscale_width and ScaleHeightScaleHeightScaleHeightscaleHeightscale_height.

Execution Information

  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).
  • Multithreading scope: global (may be called from any thread).
  • Automatically parallelized on tuple level.

Parameters

RegionRegionRegionregionregion (input_object)  region(-array) objectHRegionHObjectHObjectHobject

Region(s) to be zoomed.

RegionZoomRegionZoomRegionZoomregionZoomregion_zoom (output_object)  region(-array) objectHRegionHObjectHObjectHobject *

Zoomed region(s).

Number of elements: RegionZoom == Region

ScaleWidthScaleWidthScaleWidthscaleWidthscale_width (input_control)  extent.x HTuplefloatHTupleHtuple (real) (double) (double) (double)

Scale factor in x-direction.

Default: 2.0

Suggested values: 0.25, 0.5, 1.0, 2.0, 3.0

Value range: 0.0 ≤ ScaleWidth ScaleWidth ScaleWidth scaleWidth scale_width ≤ 100.0 (lin)

Minimum increment: 0.01

Recommended increment: 0.5

ScaleHeightScaleHeightScaleHeightscaleHeightscale_height (input_control)  extent.y HTuplefloatHTupleHtuple (real) (double) (double) (double)

Scale factor in y-direction.

Default: 2.0

Suggested values: 0.25, 0.5, 1.0, 2.0, 3.0

Value range: 0.0 ≤ ScaleHeight ScaleHeight ScaleHeight scaleHeight scale_height ≤ 100.0 (lin)

Minimum increment: 0.01

Recommended increment: 0.5

Possible Predecessors

thresholdthresholdThresholdThresholdthreshold, connectionconnectionConnectionConnectionconnection, regiongrowingregiongrowingRegiongrowingRegiongrowingregiongrowing, pouringpouringPouringPouringpouring

Possible Successors

select_shapeselect_shapeSelectShapeSelectShapeselect_shape, disp_regiondisp_regionDispRegionDispRegiondisp_region

See also

zoom_image_sizezoom_image_sizeZoomImageSizeZoomImageSizezoom_image_size, zoom_image_factorzoom_image_factorZoomImageFactorZoomImageFactorzoom_image_factor

Module

Foundation