@Deprecated public class ImagePluginAPI extends PluginApi<ImagePlugin>
Constructor and Description |
---|
ImagePluginAPI(ImagePlugin imagePlugin,
XWikiContext context)
Deprecated.
Creates a new instance of this plugin API.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight(String pageName,
String attachmentName)
Deprecated.
Detects the height of an image attached to a wiki page.
|
int |
getWidth(String pageName,
String attachmentName)
Deprecated.
Detects the width of an image attached to a wiki page.
|
getInternalPlugin, getProtectedPlugin, setPlugin
convert, convert, convert, convertAttachments, getAuthorizationManager, getContextualAuthorizationManager, getXWikiContext, hasAccess, hasAccessLevel, hasAdminRights, hasProgrammingRights, hasWikiAdminRights
public ImagePluginAPI(ImagePlugin imagePlugin, XWikiContext context)
imagePlugin
- the underlying image plugin that is exposed by this APIcontext
- the XWiki contextpublic int getHeight(String pageName, String attachmentName)
pageName
- the name of a wiki pageattachmentName
- the name of an image attached to the specified pageCopyright © 2004–2022 XWiki. All rights reserved.