Uses of Class
java.nio.Buffer
-
Packages that use Buffer Package Description java.nio Defines buffers, which are containers for data, and provides an overview of the other NIO packages.javafx.scene.image Provides the set of classes for loading and displaying images. -
-
Uses of Buffer in java.nio
Subclasses of Buffer in java.nio Modifier and Type Class Description classByteBufferA byte buffer.classCharBufferA char buffer.classDoubleBufferA double buffer.classFloatBufferA float buffer.classIntBufferAn int buffer.classLongBufferA long buffer.classMappedByteBufferA direct byte buffer whose content is a memory-mapped region of a file.classShortBufferA short buffer.Methods in java.nio that return Buffer Modifier and Type Method Description BufferBuffer. clear()Clears this buffer.abstract BufferBuffer. duplicate()Creates a new buffer that shares this buffer's content.BufferBuffer. flip()Flips this buffer.BufferBuffer. limit(int newLimit)Sets this buffer's limit.BufferBuffer. mark()Sets this buffer's mark at its position.BufferBuffer. position(int newPosition)Sets this buffer's position.BufferBuffer. reset()Resets this buffer's position to the previously-marked position.BufferBuffer. rewind()Rewinds this buffer.abstract BufferBuffer. slice()Creates a new buffer whose content is a shared subsequence of this buffer's content. -
Uses of Buffer in javafx.scene.image
Classes in javafx.scene.image with type parameters of type Buffer Modifier and Type Class Description classPixelFormat<T extends Buffer>APixelFormatobject defines the layout of data for a pixel of a given format.classWritablePixelFormat<T extends Buffer>APixelFormatobject 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 with type parameters of type Buffer Modifier and Type Method Description <T extends Buffer>
voidPixelReader. getPixels(int x, int y, int w, int h, WritablePixelFormat<T> pixelformat, T buffer, int scanlineStride)Reads pixel data from a rectangular region of the surface into the specified buffer.<T extends Buffer>
voidPixelWriter. 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.
-