Package org.jmol.awt

Class Image


  • class Image
    extends Object
    methods required by Jmol that access java.awt.Image private to org.jmol.awt
    • Field Detail

      • sampleModelBitMasks

        private static final int[] sampleModelBitMasks
    • Constructor Detail

      • Image

        Image()
    • Method Detail

      • getWidth

        static int getWidth​(Object image)
      • getHeight

        static int getHeight​(Object image)
      • grabPixels

        static int[] grabPixels​(Object imageobj,
                                int width,
                                int height,
                                int[] pixels,
                                int startRow,
                                int nRows)
      • drawImageToBuffer

        static int[] drawImageToBuffer​(Object gOffscreen,
                                       Object imageOffscreen,
                                       Object imageobj,
                                       int width,
                                       int height,
                                       int bgcolor)
      • getTextPixels

        public static int[] getTextPixels​(String text,
                                          Font font3d,
                                          Object gObj,
                                          Object image,
                                          int width,
                                          int height,
                                          int ascent)
      • newBufferedImage

        static Object newBufferedImage​(Object image,
                                       int w,
                                       int h)
      • newBufferedImage

        static Object newBufferedImage​(int w,
                                       int h)
      • allocateRgbImage

        static Object allocateRgbImage​(int windowWidth,
                                       int windowHeight,
                                       int[] pBuffer,
                                       int windowSize,
                                       boolean backgroundTransparent)
        Parameters:
        windowWidth -
        windowHeight -
        pBuffer -
        windowSize -
        backgroundTransparent -
        Returns:
        an Image
      • getStaticGraphics

        static Object getStaticGraphics​(Object image,
                                        boolean backgroundTransparent)
        Parameters:
        image -
        backgroundTransparent -
        Returns:
        Graphics object
      • flush

        static void flush​(Object image)
      • disposeGraphics

        static void disposeGraphics​(Object graphicForText)