JavaScript must be enabled in order for you to use JSXGraph and JSXGraph reference. However, it seems JavaScript is either disabled or not supported by your browser.

Class Index | File Index

Elements

Classes


Element Image


      ↳ Image

Displays an image.

Defined in: image.js.

Element Summary
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]]);


				
                




Documentation generated by JsDoc Toolkit 2.4.0 on Fri Sep 27 2013 11:32:42 GMT+0200 (CEST)