Skip to main content

Function: convertStackToVolumeViewport()

convertStackToVolumeViewport(params): Promise<IVolumeViewport>

Converts a stack viewport to a volume viewport.

Parameters

params

The parameters for the conversion.

params.options? = {}

The options for the conversion.

params.options.background?: Point3

params.options.orientation?: OrientationAxis

params.options.viewportId?: string

params.options.volumeId?: string

params.viewport: IStackViewport

The stack viewport to convert.

Returns

Promise<IVolumeViewport>

The converted volume viewport.

Defined in

packages/core/src/utilities/convertStackToVolumeViewport.ts:27