ImageServices 2.0.0
ImageServices
Services available for Images
- ImageServices
- String.asImage(String) : org.obeonetwork.m2doc.element.MImage
- String.asImage() : org.obeonetwork.m2doc.element.MImage
- org.obeonetwork.m2doc.element.MImage.fit(Integer, Integer) : org.obeonetwork.m2doc.element.MImage
- org.obeonetwork.m2doc.element.MImage.getHeight() : Integer
- org.obeonetwork.m2doc.element.MImage.getWidth() : Integer
- org.obeonetwork.m2doc.element.MImage.setConserveRatio(Boolean) : org.obeonetwork.m2doc.element.MImage
- org.obeonetwork.m2doc.element.MImage.setHeight(Integer) : org.obeonetwork.m2doc.element.MImage
- org.obeonetwork.m2doc.element.MImage.setWidth(Integer) : org.obeonetwork.m2doc.element.MImage
String.asImage(String) : org.obeonetwork.m2doc.element.MImage
Convert a String representing an URI to an Image and serialize it in the given format.
Example
Expression | Result |
---|---|
‘image.png’.asImage(‘jpg’) | insert the image ‘image.jpg’ |
String.asImage() : org.obeonetwork.m2doc.element.MImage
Convert a String representing an URI to an Image.
Example
Expression | Result |
---|---|
‘image.png’.asImage() | insert the image ‘image.png’ |
org.obeonetwork.m2doc.element.MImage.fit(Integer, Integer) : org.obeonetwork.m2doc.element.MImage
Fits the Image in the given the given rectangle width and height.
Example
Expression | Result |
---|---|
myImage.fit(200, 300) | will fit the image in a rectangle (width=200, height=300) |
org.obeonetwork.m2doc.element.MImage.getHeight() : Integer
Gets the height of the image.
Example
Expression | Result |
---|---|
myImage.getHeight() | 300 |
org.obeonetwork.m2doc.element.MImage.getWidth() : Integer
Gets the width of the image.
Example
Expression | Result |
---|---|
myImage.getWidth() | 300 |
org.obeonetwork.m2doc.element.MImage.setConserveRatio(Boolean) : org.obeonetwork.m2doc.element.MImage
Sets the conserve ratio of the image.
Example
Expression | Result |
---|---|
myImage.setConserveRatio(false) | set the conserve ratio to false |
org.obeonetwork.m2doc.element.MImage.setHeight(Integer) : org.obeonetwork.m2doc.element.MImage
Sets the height of the image.
Example
Expression | Result |
---|---|
myImage.setHeight(300) | set the height to 300 |
org.obeonetwork.m2doc.element.MImage.setWidth(Integer) : org.obeonetwork.m2doc.element.MImage
Sets the width of the image.
Example
Expression | Result |
---|---|
myImage.setWidth(300) | set the witdh to 300 |