TinyLine
v2.0

com.tinyline.tiny2d
Class TinyBuffer

java.lang.Object
  extended bycom.tinyline.tiny2d.TinyBuffer

public final class TinyBuffer
extends java.lang.Object

The TinyBuffer class represents a rectangular array of pixels.

A TinyBuffer defines values for pixels occupying a particular rectangular area of the canvas. The rectangle, known as the TinyBuffer's bounding rectangle, is width, and height values.

Each pixel value is stored in 0xAARRGGBB format, where the high-order byte contains the alpha channel and the remaining bytes contain color components for red, green and blue, respectively. The alpha channel specifies the opacity of the pixel, where a value of 0x00 represents a pixel that is fully transparent and a value of 0xFF represents a fully opaque pixel.

Version:
1.11
Author:
Andrew Girow

Field Summary
 int height
          The width of this TinyBuffer.
 int[] pixels32
          The pixel data of this TinyBuffer.
 int width
          The width of this TinyBuffer.
 
Constructor Summary
TinyBuffer()
          Creates a new empty TinyBuffer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

public int width
The width of this TinyBuffer.


height

public int height
The width of this TinyBuffer.


pixels32

public int[] pixels32
The pixel data of this TinyBuffer.

Constructor Detail

TinyBuffer

public TinyBuffer()
Creates a new empty TinyBuffer.


TinyLine
v2.0

Provided under the terms of the TinyLine License Agreement that has been included with this distribution