Logo Search packages:      
Sourcecode: jmagick version File versions  Download package

MagickImage [] magick::MagickImage::breakFrames (  )  throws MagickException [inline]

Destructively create array of image frames. Contains this image as the first object and frames in sequence.

Returns:
an array of image frame
Exceptions:
MagickException on error

Definition at line 1298 of file MagickImage.java.

References nextImage().

    {
        int length = getNumFrames();
        MagickImage[] list = new MagickImage[length];
        MagickImage image = this;
        for (int i = 0; i < length && image != null; i++) {
            list[i] = image;
            image = image.nextImage();
        }
        return list;
    }


Generated by  Doxygen 1.6.0   Back to index