Image.Scale

Description

Name

class Tinman.Image.Scale

Derived from

Image

Scales the given image. Shrinking is applied by using an average filter, enlarging is performed using Catmull-Rom interpolation.

Fields / Required

image

Type

Image

Constraint

# != null

The image to scale.


width

Type

number

Constraint

# >= 0

The new image width, in pixels.


height

Type

number

Constraint

# >= 0

The new image height, in pixels.

Fields / Optional

mode

Type

Interpolation

Default

Interpolation.UniformB

The interpolation mode to use for scaling image pixels.

Fields / External

info

Type

Image.Info

Contains information about the image data source, including image format and embedded georeferencing information.