java.awt.image
Class MemoryImageSource
java.lang.Object
|
+--java.awt.image.MemoryImageSource
All Implemented Interfaces:
ImageProducer
MemoryImageSource(int w, int h, java.awt.image.ColorModel cm, byte[] pix, int off, int scan)
|
MemoryImageSource(int w, int h, java.awt.image.ColorModel cm, byte[] pix, int off, int scan, java.util.Hashtable props)
|
MemoryImageSource(int w, int h, java.awt.image.ColorModel cm, int[] pix, int off, int scan)
|
MemoryImageSource(int w, int h, java.awt.image.ColorModel cm, int[] pix, int off, int scan, java.util.Hashtable props)
|
MemoryImageSource(int w, int h, int[] pix, int off, int scan, java.util.Hashtable props)
|
MemoryImageSource(int w, int h, int[] pix, int off, int scan)
|
synchronized void | addConsumer(java.awt.image.ImageConsumer ic)
|
synchronized boolean | isConsumer(java.awt.image.ImageConsumer ic)
|
void | newPixels()
|
synchronized void | newPixels(int x, int y, int w, int h)
|
synchronized void | newPixels(int x, int y, int w, int h, boolean framenotify)
|
synchronized void | newPixels(byte[] newpix, java.awt.image.ColorModel newmodel, int offset, int scansize)
|
synchronized void | newPixels(int[] newpix, java.awt.image.ColorModel newmodel, int offset, int scansize)
|
synchronized void | removeConsumer(java.awt.image.ImageConsumer ic)
|
void | requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
|
synchronized void | setAnimated(boolean animated)
|
synchronized void | setFullBufferUpdates(boolean fullbuffers)
|
void | startProduction(java.awt.image.ImageConsumer ic)
|
MemoryImageSource
public MemoryImageSource(int w, int h, int[] pix, int off, int scan)
Constructs an ImageProducer from memory using the default RGB ColorModel
Parameters:
MemoryImageSource
public MemoryImageSource(int w, int h, int[] pix, int off, int scan, java.util.Hashtable props)
Constructs an ImageProducer from memory using the default RGB ColorModel
Parameters:
MemoryImageSource
public MemoryImageSource(int w, int h, java.awt.image.ColorModel cm, byte[] pix, int off, int scan)
Constructs an ImageProducer from memory
Parameters:
MemoryImageSource
public MemoryImageSource(int w, int h, java.awt.image.ColorModel cm, byte[] pix, int off, int scan, java.util.Hashtable props)
Constructs an ImageProducer from memory
Parameters:
MemoryImageSource
public MemoryImageSource(int w, int h, java.awt.image.ColorModel cm, int[] pix, int off, int scan)
Constructs an ImageProducer from memory
Parameters:
MemoryImageSource
public MemoryImageSource(int w, int h, java.awt.image.ColorModel cm, int[] pix, int off, int scan, java.util.Hashtable props)
Constructs an ImageProducer from memory
Parameters:
addConsumer
public synchronized void addConsumer(java.awt.image.ImageConsumer ic)
Used to register an ImageConsumer
with this
ImageProducer
.
Parameters:
isConsumer
public synchronized boolean isConsumer(java.awt.image.ImageConsumer ic)
Used to determine if the given ImageConsumer
is
already registered with this ImageProducer
.
Parameters:
newPixels
public void newPixels()
Send an animation frame to the image consumers.
newPixels
public synchronized void newPixels(byte[] newpix, java.awt.image.ColorModel newmodel, int offset, int scansize)
Parameters:
newPixels
public synchronized void newPixels(int x, int y, int w, int h)
Send an animation frame to the image consumers containing the specified
pixels unless setFullBufferUpdates is set.
Parameters:
newPixels
public synchronized void newPixels(int x, int y, int w, int h, boolean framenotify)
Send an animation frame to the image consumers containing the specified
pixels unless setFullBufferUpdates is set.
If framenotify is set then a notification is sent when the frame
is sent otherwise no status is sent.
Parameters:
newPixels
public synchronized void newPixels(int[] newpix, java.awt.image.ColorModel newmodel, int offset, int scansize)
Parameters:
removeConsumer
public synchronized void removeConsumer(java.awt.image.ImageConsumer ic)
Used to remove an ImageConsumer
from the list of
registered consumers for this ImageProducer
.
Parameters:
requestTopDownLeftRightResend
public void requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
Used to register an ImageConsumer
with this
ImageProducer
and then request that this producer
resend the image data in the order top-down, left-right.
Parameters:
setAnimated
public synchronized void setAnimated(boolean animated)
Changes a flag to indicate whether this MemoryImageSource supports
animations.
Parameters:
setFullBufferUpdates
public synchronized void setFullBufferUpdates(boolean fullbuffers)
A flag to indicate whether or not to send full buffer updates when
sending animation. If this flag is set then full buffers are sent
in the newPixels methods instead of just regions.
Parameters:
startProduction
public void startProduction(java.awt.image.ImageConsumer ic)
Used to register an ImageConsumer
with this
ImageProducer
and then immediately start
reconstruction of the image data to be delivered to all
registered consumers.
Parameters: