create the glassNode, and an img on a dojox.gfx surface
// images are hard to make into workable templates, so just add outer overlay // and skip using dijit._Templated this.glassNode = dojo.doc.createElement('div'); this.surfaceNode = this.glassNode.appendChild(dojo.doc.createElement('div')); dojo.addClass(this.glassNode,"glassNode"); dojo.body().appendChild(this.glassNode); with(this.glassNode.style){ height = this.glassSize + "px"; width = this.glassSize + "px"; } this.surface = dojox.gfx.createSurface(this.surfaceNode, this.glassSize, this.glassSize); this.img = this.surface.createImage({ src:this.domNode.src, width:this._zoomSize.w, height:this._zoomSize.h });