Element Image
↳ Image
Displays an image.
Defined in: image.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Shows an image.
|
Element Detail
Image
Shows an image. The image can be supplied as an URL or an base64 encoded inline image
like "data:image/png;base64, /9j/4AAQSkZJRgA..." or a function returning an URL: function(){ return 'xxx.png; }.
-
This element has no direct constructor. To create an instance of this element you have to call JXG.Board#create
with type "image".
- Possible parent array combinations are:
-
{String} url
{Array} topleft
{Array} widthheight
- url defines the location of the image data. Optional topleft and widthheight define the user coordinates of the top left corner and the image's width and height.
- Throws:
- {Exception}
- If the element cannot be constructed with the given parent objects an exception is thrown.
- Examples:
var im = board.create('image', ['http://geonext.uni-bayreuth.de/fileadmin/geonext/design/images/logo.gif', [-3,1],[5,5]]);