PixelReader

scalafx.scene.image.PixelReader
See thePixelReader companion object
trait PixelReader extends SFXDelegate[PixelReader]

Attributes

Companion
object
Graph
Supertypes
trait SFXDelegate[PixelReader]
class Object
trait Matchable
class Any

Members list

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

Inherited methods

def delegate: D

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes

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 parameters

ref

Object to be compared.

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def toString: String

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate