Fit to Canvas

Fit image to target canvas size with various modes

intermediate
Since P00

Input Ports

Image

Input image

Image

Output Ports

Image

Image output from Fit to Canvas.

Image

Parameters

NameTypeDefaultDescription
WidthInt32Controls the width setting for Fit to Canvas.
HeightInt32Controls the height setting for Fit to Canvas.
ParameterEnumContainControls the parameter setting for Fit to Canvas.
ParameterEnumCenterControls the parameter setting for Fit to Canvas.
ParameterEnumNearestNeighborControls the parameter setting for Fit to Canvas.

Overview

Fit image to target canvas size with various modes

Inputs and Outputs

Input Ports

  • Image Image: Input image

Output Ports

  • Image Image: Image output from Fit to Canvas.

Key Parameters

NameTypeDefaultDescription
WidthInt32Controls the width setting for Fit to Canvas.
HeightInt32Controls the height setting for Fit to Canvas.
ParameterEnumContainControls the parameter setting for Fit to Canvas.
ParameterEnumCenterControls the parameter setting for Fit to Canvas.
ParameterEnumNearestNeighborControls the parameter setting for Fit to Canvas.

When to Use

Use Fit to Canvas when you need this operation to remain explicit, reusable, and easy to tune inside a PixPipeline node graph.

Notes

Connect compatible data types and preview the result while tuning this node. Parameter names and port names follow the PixPipeline UI.

Fit to Canvas — PixPipeline Node Reference