Package ome.util

Class ImageUtil


  • public class ImageUtil
    extends java.lang.Object
    Provides helper methods for performing various things on image data.
    Since:
    3.0
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.image.BufferedImage createBufferedImage​(int[] buf, int sizeX, int sizeY)
      Creates a buffered image from a rendering engine RGB buffer without data copying.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageUtil

        public ImageUtil()
    • Method Detail

      • createBufferedImage

        public static java.awt.image.BufferedImage createBufferedImage​(int[] buf,
                                                                       int sizeX,
                                                                       int sizeY)
        Creates a buffered image from a rendering engine RGB buffer without data copying.
        Parameters:
        buf - the rendering engine packed integer buffer.
        sizeX - the X-width of the image rendered.
        sizeY - the Y-width of the image rendered.
        Returns:
        a buffered image wrapping buf with the X-Y dimensions provided.