Java javafx.scene.image PixelReader fields, constructors, methods, implement or subclass

Example usage for Java javafx.scene.image PixelReader fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.scene.image PixelReader.

The text is from its open source code.

Method

ColorgetColor(int x, int y)
Reads the color of a pixel from the specified coordinates in the surface and returns the value as a Color object.
PixelFormatgetPixelFormat()
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.
voidgetPixels(int x, int y, int w, int h, WritablePixelFormat pixelformat, byte buffer[], int offset, int scanlineStride)
Reads pixel data from a rectangular region of the surface into the specified byte array.
voidgetPixels(int x, int y, int w, int h, WritablePixelFormat pixelformat, int buffer[], int offset, int scanlineStride)
Reads pixel data from a rectangular region of the surface into the specified int array.