Image.Pad

Description

Name

class Tinman.Image.Pad

Derived from

Image

Pads this image by adding pixels at the borders, using either regular or special padding.

Regular padding duplicates pixels at all four image borders. It can be used to reduce (but not eliminate) seams that will occur when tiled geodata is imported incrementally using on-the-fly projection. The correct solution would be to merge all geodata tiles into a dataset and then perform the projection on the whole geodata.

Special padding adds a new pixel column at the right border, using the pixels of the column at the left border. It can be used to restore the missing pixel column of a a pixel-is-point grid that wraps around the X-axis.

Fields / Required

image

Type

Image

Constraint

# != null

The image to pad.

Fields / Optional

amount

Type

number

Constraint

# >= -1

Default

1

The amount in pixels to use for regular padding or -1 for special padding. A padding amount of zero does not perform any image modification.

Fields / External

info

Type

Image.Info

Contains information about the image data source, including image format and embedded geo-referencing information.