Skip to content

Commit

Permalink
Updated ref-doc/nightly/m2doc_service_imageservices.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed Aug 27, 2024
1 parent b0bbe32 commit a04b03e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ref-doc/nightly/m2doc_service_imageservices.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ relativePath: ../..

<!--
/********************************************************************************
** Copyright (c) 2015, 2023 Obeo.
** Copyright (c) 2015, 2024 Obeo.
** All rights reserved. This program and the accompanying materials
** are made available under the terms of the Eclipse Public License v2.0
** which accompanies this distribution, and is available at
Expand Down Expand Up @@ -40,16 +40,17 @@ Convert a String representing an URI to an Image.

## String.asImage(String) : org.obeonetwork.m2doc.element.MImage

Convert a String representing an URI to an Image and serialize it in the given format.
Convert a String representing an URI to an Image and specify the image format of the input.

### Parameter

* **uri**: The Image uri, it can be relative to the template
* **format**: the image format: BMP, DIB, EMF, EPS, GIF, JPG, JPEG, PICT, PNG, SVG, TIFF, WMF, WPG

### Example

* 'image.png'.asImage('jpg')
* insert the image 'image.jpg'
* 'image'.asImage('jpg')
* insert the image as a jpg image

## org.obeonetwork.m2doc.element.MElement.fitAll(Integer, Integer, boolean) : org.obeonetwork.m2doc.element.MElement

Expand Down

0 comments on commit a04b03e

Please sign in to comment.