Pixels

smile.pictures.Pixels
final class Pixels

The pixels of a smile.pictures.Bitmap at one buffer pixel per logical pixel, as smile.pictures.Bitmap.pixels computed them. The view never changes. Nothing it gives can be written back into the bitmap or into the bitmaps that share its pixels.

smile.pictures.Pixels.argbData is the fast path for reading many pixels. The other readers make a smile.colors.Color per pixel.

Attributes

Source
Pixels.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

All pixels as packed ARGB integers in row-major order, in a new array on every call, so the caller may change it.

All pixels as packed ARGB integers in row-major order, in a new array on every call, so the caller may change it.

Attributes

Source
Pixels.scala
def colorAt(x: Int, y: Int): Option[Color]

The color of the pixel at column x and row y, or None outside the pixels.

The color of the pixel at column x and row y, or None outside the pixels.

Attributes

Source
Pixels.scala

All pixels' colors in row-major order.

All pixels' colors in row-major order.

Attributes

Source
Pixels.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
Pixels.scala

Concrete fields

val height: Int

The number of rows.

The number of rows.

Attributes

Source
Pixels.scala
val width: Int

The number of pixels in a row.

The number of pixels in a row.

Attributes

Source
Pixels.scala