MemoryImageSource.newPixels
Class Overview | Class Members |
This Package |
All Packages
public void newPixels()
Description
Send a whole new buffer of pixels to any ImageConsumers that
are currently interested in the data for this image and notify
them that an animation frame is complete.
This method only has effect if the animation flag has been
turned on through the setAnimated() method.
See Also
ImageConsumer, setAnimated
public synchronized void newPixels( int x,
int y,
int w,
int h )
Parameters
- x
- the x coordinate of the upper left corner of the rectangle
of pixels to be sent
- y
- the y coordinate of the upper left corner of the rectangle
of pixels to be sent
- w
- the width of the rectangle of pixels to be sent
- h
- the height of the rectangle of pixels to be sent
Description
Send a rectangular region of the buffer of pixels to any
ImageConsumers that are currently interested in the data for
this image and notify them that an animation frame is complete.
This method only has effect if the animation flag has been
turned on through the setAnimated() method.
If the full buffer update flag was turned on with the
setFullBufferUpdates() method then the rectangle parameters
will be ignored and the entire buffer will always be sent.
See Also
ImageConsumer, setAnimated, setFullBufferUpdates
public synchronized void newPixels( int x,
int y,
int w,
int h,
boolean framenotify )
Parameters
- x
- the x coordinate of the upper left corner of the rectangle
of pixels to be sent
- y
- the y coordinate of the upper left corner of the rectangle
of pixels to be sent
- w
- the width of the rectangle of pixels to be sent
- h
- the height of the rectangle of pixels to be sent
- framenotify
- true if the consumers should be sent a
SINGLEFRAMEDONE notification
Description
Send a rectangular region of the buffer of pixels to any
ImageConsumers that are currently interested in the data for
this image.
If the framenotify parameter is true then the consumers are
also notified that an animation frame is complete.
This method only has effect if the animation flag has been
turned on through the setAnimated() method.
If the full buffer update flag was turned on with the
setFullBufferUpdates() method then the rectangle parameters
will be ignored and the entire buffer will always be sent.
See Also
ImageConsumer, setAnimated, setFullBufferUpdates
public synchronized void newPixels( byte newpix[],
ColorModel newmodel,
int offset,
int scansize )
Description
Change to a new byte array to hold the pixels for this image.
If the animation flag has been turned on through the setAnimated()
method, then the new pixels will be immediately delivered to any
ImageConsumers that are currently interested in the data for
this image.
See Also
setAnimated
public synchronized void newPixels( int newpix[],
ColorModel newmodel,
int offset,
int scansize )
Description
Change to a new int array to hold the pixels for this image.
If the animation flag has been turned on through the setAnimated()
method, then the new pixels will be immediately delivered to any
ImageConsumers that are currently interested in the data for
this image.
See Also
setAnimated