Uses of Class
javafx.scene.image.PixelFormat

Packages that use PixelFormat
Package
Description
Provides the set of classes for loading and displaying images.
  • Uses of PixelFormat in javafx.scene.image

    Modifier and Type
    Class
    Description
    class 
    A PixelFormat object representing a pixel format that can store full colors and so can be used as a destination format to write pixel data from an arbitrary image.
    Methods in javafx.scene.image that return PixelFormat
    Modifier and Type
    Method
    Description
    PixelFormat.createByteIndexedInstance(int[] colors)
    Creates a PixelFormat instance describing a pixel layout with the pixels stored as single bytes representing an index into the specified lookup table of non-premultiplied color values in the INT_ARGB format.
    PixelFormat.createByteIndexedPremultipliedInstance(int[] colors)
    Creates a PixelFormat instance describing a pixel layout with the pixels stored as single bytes representing an index into the specified lookup table of premultiplied color values in the INT_ARGB_PRE format.
    PixelFormat.getByteRgbInstance()
    Returns a PixelFormat instance describing a pixel layout with the pixels stored in adjacent bytes with the color components stored in order of increasing index: red, green, blue.
    PixelBuffer.getPixelFormat()
    Returns the PixelFormat of this PixelBuffer.
    PixelReader.getPixelFormat()
    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.
    PixelWriter.getPixelFormat()
    This method returns the PixelFormat in which the surface stores its pixels, or a roughly equivalent pixel format from which it can easily convert pixels for purposes of writing them.
    Methods in javafx.scene.image with parameters of type PixelFormat
    Modifier and Type
    Method
    Description
    void
    PixelWriter.setPixels(int x, int y, int w, int h, PixelFormat<ByteBuffer> pixelformat, byte[] buffer, int offset, int scanlineStride)
    Stores pixel data from a byte array into a rectangular region of the surface.
    void
    PixelWriter.setPixels(int x, int y, int w, int h, PixelFormat<IntBuffer> pixelformat, int[] buffer, int offset, int scanlineStride)
    Stores pixel data from an int array into a rectangular region of the surface.
    <T extends Buffer>
    void
    PixelWriter.setPixels(int x, int y, int w, int h, PixelFormat<T> pixelformat, T buffer, int scanlineStride)
    Stores pixel data from a buffer into a rectangular region of the surface.
    Constructors in javafx.scene.image with parameters of type PixelFormat
    Modifier
    Constructor
    Description
     
    PixelBuffer(int width, int height, T buffer, PixelFormat<T> pixelFormat)
    Constructs a PixelBuffer using the specified Buffer and PixelFormat.