ResamplingMode

smile.ResamplingMode

How a bitmap is resampled when a picture is scaled or rotated for an output.

A bitmap records the operations done to it (see smile.pictures.Bitmap). The mode says what an output does with them.

Attributes

Source
RenderSettings.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case Direct extends ResamplingMode

Resample once, from the source straight to the target. The source's pixels are drawn with every scaling and turning composed into one map, at the output's own scale. A bitmap of a picture has the picture rendered at the density the output needs. A bitmap that is only moved, flipped, cropped, shifted or turned by right angles is drawn on whole pixels, as in Stepwise.

Resample once, from the source straight to the target. The source's pixels are drawn with every scaling and turning composed into one map, at the output's own scale. A bitmap of a picture has the picture rendered at the density the output needs. A bitmap that is only moved, flipped, cropped, shifted or turned by right angles is drawn on whole pixels, as in Stepwise.

Attributes

Source
RenderSettings.scala
case Stepwise extends ResamplingMode

Resample after each transformation in turn, at one buffer pixel per logical pixel, with the buffer algorithms that once applied each operation at once. An output in this mode renders at a scale factor of 1.

Resample after each transformation in turn, at one buffer pixel per logical pixel, with the buffer algorithms that once applied each operation at once. An output in this mode renders at a scale factor of 1.

Attributes

Source
RenderSettings.scala