public class Image extends Mod implements GeneralMod
Constructor and Description |
---|
Image(OptInteger width,
OptInteger height,
String img)
JSON-driven constructor.
|
Modifier and Type | Method and Description |
---|---|
JSONLiteral |
encode(EncodeControl control)
Encode this mod for transmission or persistence.
|
attachTo, clone, context, ensureHolding, ensureInContext, ensureReachable, ensureSameContext, ensureSameUser, holder, isEphemeral, markAsChanged, markAsEphemeral, object
@JSONMethod(value={"width","height","img"}) public Image(OptInteger width, OptInteger height, String img)
width
- Horizontal extent of the image (optional).height
- Vertical extent of the image (optional).img
- URL of the image itself.public JSONLiteral encode(EncodeControl control)
Copyright © 2017. All rights reserved.