JavaScript is disabled on your browser.
JavaScript is disabled on your browser.
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.
Methods in java.nio that return Buffer
Modifier and Type
Method
Description
Buffer
Buffer. clear ()
Clears this buffer.
abstract Buffer
Buffer. duplicate ()
Creates a new buffer that shares this buffer's content.
Buffer
Buffer. flip ()
Flips this buffer.
Buffer
Buffer. limit (int newLimit)
Sets this buffer's limit.
Buffer
Buffer. mark ()
Sets this buffer's mark at its position.
Buffer
Buffer. position (int newPosition)
Sets this buffer's position.
Buffer
Buffer. reset ()
Resets this buffer's position to the previously-marked position.
Buffer
Buffer. rewind ()
Rewinds this buffer.
abstract Buffer
Buffer. slice ()
Creates a new buffer whose content is a shared subsequence of
this buffer's content.
Classes in javafx.scene.image with type parameters of type Buffer
Modifier and Type
Class
Description
class
PixelFormat <T extends Buffer >
A PixelFormat
object defines the layout of data for a pixel of
a given format.
class
WritablePixelFormat <T extends Buffer >
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 with type parameters of type Buffer
Modifier and Type
Method
Description
<T extends Buffer > void
PixelReader. 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 > 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.
JavaScript is disabled on your browser.
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .
Scripting on this page tracks web page traffic, but does not change the content in any way.