image_overlay

Image Overlay

Fooling around

Image Overlay is a module to allow users to "draw" on images with JQuery UI & canvas, and save the result as an image node. It's very rudimentary right now and lacks important security checks.

To try it out live,make sure you are logged on (you can use your drupal.org logon). Go to image galleries on this site and select an image to view. Hit the tab "Add Overlay".

This module does not work with IE yet.

Point

A Geometric point, with X and Y co-ordinates.


function Point( int_x, int_y ) {
  this.x = int_x;
  this.y = int_y;
}

Point.prototype.GetX = function() { return this.x; }

Point.prototype.GetY = function() { return this.y; }


Point.prototype.Set = function( int_x, int_y) {
  this.x = int_x;
  this.y = int_y;
};


Point.prototype.toPrintableString = function() {
  ans = '(' + this.GetX() + ',' + this.GetY() + ')';
  return ans;
};

Objects

Javascript Objects

Development

Notes and thoughts on the development of image_overlay.

Syndicate content