Class ImagePluginAPI


  • @Deprecated
    public class ImagePluginAPI
    extends PluginApi<ImagePlugin>
    Deprecated.
    the plugin technology is deprecated, consider rewriting as components
    Version:
    $Id: 9107374730990c0260a639c9dbf55c9a1c69921f $
    • Constructor Detail

      • ImagePluginAPI

        public ImagePluginAPI​(ImagePlugin imagePlugin,
                              XWikiContext context)
        Deprecated.
        Creates a new instance of this plugin API.
        Parameters:
        imagePlugin - the underlying image plugin that is exposed by this API
        context - the XWiki context
    • Method Detail

      • getHeight

        public int getHeight​(String pageName,
                             String attachmentName)
        Deprecated.
        Detects the height of an image attached to a wiki page.
        Parameters:
        pageName - the name of a wiki page
        attachmentName - the name of an image attached to the specified page
        Returns:
        the height of the specified image
      • getWidth

        public int getWidth​(String pageName,
                            String attachmentName)
        Deprecated.
        Detects the width of an image attached to a wiki page.
        Parameters:
        pageName - the name of a wiki page
        attachmentName - the name of an image attached to the specified page
        Returns:
        the width of the specified image