インタフェース RenderedImageType


  • public interface RenderedImageType
    This interface allows the RenderedImageFactory to auto-defect an image type through an extension point. Implementors need to know how to auto-defect the type of image given a byte buffer representing the contents of the image.
    作成者:
    sshaw
    • メソッドの詳細

      • autoDetect

        org.eclipse.gmf.runtime.draw2d.ui.render.RenderedImage autoDetect​(byte[] buffer,
                                                                          RenderedImageKey key)
        パラメータ:
        buffer - the byte[] array that is the contents of the image file. This is used as the input in order to detect the type of file format.
        key - the RenderedImageKey that defines the parameters of how to render the particular image.
        戻り値:
        a RenderedImage if the buffer was auto-detected as being this type. null is returned if the buffer stream is not detected as this type.