Class SwtUniversalImage

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void dispose()  
      org.eclipse.swt.graphics.Image getAsBitmap​(org.eclipse.swt.graphics.Device device)
      Deprecated.
      Use getAsBitmapForSize() instead.
      org.eclipse.swt.graphics.Image getAsBitmapForSize​(org.eclipse.swt.graphics.Device device, int width, int height)
      Method getAsBitmapForSize(..., angle) can't be called, because it returns bigger picture.
      org.eclipse.swt.graphics.Image getAsBitmapForSize​(org.eclipse.swt.graphics.Device device, int width, int height, double angleRadians)
      Draw rotated image on double canvas size.
      protected abstract org.eclipse.swt.graphics.Image renderRotated​(org.eclipse.swt.graphics.Device device, int width, int height, double angleRadians)  
      protected abstract org.eclipse.swt.graphics.Image renderSimple​(org.eclipse.swt.graphics.Device device)
      Deprecated.
      protected abstract org.eclipse.swt.graphics.Image renderSimple​(org.eclipse.swt.graphics.Device device, int width, int height)  
      protected org.eclipse.swt.graphics.Image swing2swt​(org.eclipse.swt.graphics.Device device, BufferedImage img)
      Converts BufferedImage to SWT/Image with alpha channel.
    • Constructor Detail

      • SwtUniversalImage

        public SwtUniversalImage()
    • Method Detail

      • renderSimple

        @Deprecated
        protected abstract org.eclipse.swt.graphics.Image renderSimple​(org.eclipse.swt.graphics.Device device)
        Deprecated.
      • renderSimple

        protected abstract org.eclipse.swt.graphics.Image renderSimple​(org.eclipse.swt.graphics.Device device,
                                                                       int width,
                                                                       int height)
      • renderRotated

        protected abstract org.eclipse.swt.graphics.Image renderRotated​(org.eclipse.swt.graphics.Device device,
                                                                        int width,
                                                                        int height,
                                                                        double angleRadians)
      • dispose

        public void dispose()
      • getAsBitmap

        @Deprecated
        public org.eclipse.swt.graphics.Image getAsBitmap​(org.eclipse.swt.graphics.Device device)
        Deprecated.
        Use getAsBitmapForSize() instead.
      • getAsBitmapForSize

        public org.eclipse.swt.graphics.Image getAsBitmapForSize​(org.eclipse.swt.graphics.Device device,
                                                                 int width,
                                                                 int height)
        Method getAsBitmapForSize(..., angle) can't be called, because it returns bigger picture.
      • getAsBitmapForSize

        public org.eclipse.swt.graphics.Image getAsBitmapForSize​(org.eclipse.swt.graphics.Device device,
                                                                 int width,
                                                                 int height,
                                                                 double angleRadians)
        Draw rotated image on double canvas size. It required against lost corners on rotate.
      • swing2swt

        protected org.eclipse.swt.graphics.Image swing2swt​(org.eclipse.swt.graphics.Device device,
                                                           BufferedImage img)
        Converts BufferedImage to SWT/Image with alpha channel.