Core Optical, Inc.
SourceData Resize Method Industrial Strength, Scientific Grade
Resizes the source data to the specified dimensions.

Namespace: PrecisionImage
Assembly: PrecisionImage (in PrecisionImage.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public void Resize(
	int newWidth,
	int newHeight,
	ResamplingKernel kernel = null
)

Parameters

newWidth
Type: OnlineSystem Int32
An OnlineInt32 type indicating the target number of columns to resize the data to.
newHeight
Type: OnlineSystem Int32
An OnlineInt32 type indicating the target number of rows to resize the data to.
kernel (Optional)
Type: PrecisionImage.Resampling ResamplingKernel
A ResamplingKernel type indicating the resampling kernel to use during the resizing operation. This argument is optional. Default is MitchellNetravaliKernel.
Exceptions

ExceptionCondition
OnlineSystem ArgumentException Thrown when either of the target dimensions is less than 1.
Remarks

Use this method for convenient resizing of source data using automatic resampling parameters. All data channels in the parent object are resized in place. By default, the resampling kernel employed during the resizing is MitchellNetravaliKernel although a different type can be specified. If any of the the specified dimensions involve downsizing the source data, the data is first prefiltered in the direction of the dowsizing prior to being subsampled.

See Also