|Modifier and Type||Method and Description|
Stores a 32-bit integer representation of the color in the buffer at the specified coordinates.
createByteIndexedInstance, createByteIndexedPremultipliedInstance, getArgb, getByteBgraInstance, getByteBgraPreInstance, getByteRgbInstance, getIntArgbInstance, getIntArgbPreInstance, getType, isPremultiplied
public boolean isWritable()
buf.get(0)would return the pixel information for the pixel at coordinates
(0, 0). The
scanlineStrideparameter defines the distance from the pixel data at the start of one row to the pixel data at the start of the immediately following row at the next higher Y coordinate. Usually,
scanlineStrideis the same as the width of the image multiplied by the number of data elements per pixel (1 for the case of the integer and indexed formats, or 3 or 4 in the case of the byte formats), but some images may have further padding between rows for alignment or other purposes.
buf- the buffer of pixel data
x- the X coordinate of the pixel to be read
y- the Y coordinate of the pixel to be read
scanlineStride- the number of buffer elements between the start of adjacent pixel rows in the buffer
argb- a 32-bit value with the color to be stored in the pixel in a format similar to the
Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to