PixelReader

trait PixelReader extends SFXDelegate[PixelReader]
trait SFXDelegate[PixelReader]
class Object
trait Matchable
class Any

Value members

Concrete methods

def getArgb(x: Int, y: Int): Int

Reads a 32-bit integer representation of the color of a pixel from the specified coordinates in the surface.

Reads a 32-bit integer representation of the color of a pixel from the specified coordinates in the surface.

def getColor(x: Int, y: Int): Color

Reads the color of a pixel from the specified coordinates in the surface and returns the value as a Color object.

Reads the color of a pixel from the specified coordinates in the surface and returns the value as a Color object.

def getPixels(x: Int, y: Int, w: Int, h: Int, pixelformat: WritablePixelFormat[ByteBuffer], buffer: Array[Byte], offset: Int, scanlineStride: Int): Unit

Reads pixel data from a rectangular region of the surface into the specified byte array.

Reads pixel data from a rectangular region of the surface into the specified byte array.

def getPixels(x: Int, y: Int, w: Int, h: Int, pixelformat: WritablePixelFormat[IntBuffer], buffer: Array[Int], offset: Int, scanlineStride: Int): Unit

Reads pixel data from a rectangular region of the surface into the specified int array.

Reads pixel data from a rectangular region of the surface into the specified int array.

def getPixels[B <: Buffer](x: Int, y: Int, w: Int, h: Int, pixelformat: WritablePixelFormat[B], buffer: B, scanlineStride: Int): Unit

Reads pixel data from a rectangular region of the surface into the specified buffer.

Reads pixel data from a rectangular region of the surface into the specified buffer.

This method returns the PixelFormat in which the surface stores its pixels, or a roughly equivalent pixel format into which it can easily convert its pixels for purposes of reading them.

This method returns the PixelFormat in which the surface stores its pixels, or a roughly equivalent pixel format into which it can easily convert its pixels for purposes of reading them.

Inherited methods

def delegate: PixelReader

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Inherited from
SFXDelegate
override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value Params
ref

Object to be compared.

Returns

if the other object is equals to this delegate or not.

Definition Classes
Inherited from
SFXDelegate
override def hashCode: Int
Returns

The delegate hashcode

Definition Classes
Inherited from
SFXDelegate
override def toString: String
Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
Inherited from
SFXDelegate