public class MagickProducer extends Magick implements ImageProducer
| Constructor and Description |
|---|
MagickProducer(MagickImage image)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConsumer(ImageConsumer consumer)
This method is used to register an ImageConsumer with the
ImageProducer for access to the image data during a later
reconstruction of the Image.
|
boolean |
isConsumer(ImageConsumer consumer)
This method determines if a given ImageConsumer object is
currently registered with this ImageProducer as one of its
consumers.
|
void |
removeConsumer(ImageConsumer consumer)
This method removes the given ImageConsumer object from the
list of consumers currently registered to receive image data.
|
void |
requestTopDownLeftRightResend(ImageConsumer consumer)
This method is used by an ImageConsumer to request that the
ImageProducer attempt to resend the image data one more time
in TOPDOWNLEFTRIGHT order so that higher quality conversion
algorithms which depend on receiving pixels in order can be
used to produce a better output version of the image.
|
void |
startProduction(ImageConsumer consumer)
This method both registers the given ImageConsumer object
as a consumer and starts an immediate reconstruction of the
image data which will then be delivered to this consumer and
any other consumer which may have already been registered
with the producer.
|
parseImageGeometrypublic MagickProducer(MagickImage image)
image - the MagickImage to produce an Image frompublic void addConsumer(ImageConsumer consumer)
addConsumer in interface ImageProducerconsumer - to register with the producerpublic boolean isConsumer(ImageConsumer consumer)
isConsumer in interface ImageProducerconsumer - to consumer to register with the producerpublic void removeConsumer(ImageConsumer consumer)
removeConsumer in interface ImageProducerconsumer - the consumer to check for registrationpublic void startProduction(ImageConsumer consumer)
startProduction in interface ImageProducerconsumer - to be registered before producing the imagepublic void requestTopDownLeftRightResend(ImageConsumer consumer)
requestTopDownLeftRightResend in interface ImageProducerconsumer - the consumer to register before producing the imageCopyright © 2017. All rights reserved.