am i on the right path? I turned off the lower radio buttons to give me more room to play with. radioButton = Pan1.add ('radioButton {text: "Pic1"}') Image.prototype.onDraw =function(){ if(!this.image )return; var WH =this.size,wh =this.image.size,k = Math.min(WH[0]/wh[0], WH[1]/wh[1]), xy; wh =[k*wh[0],k*wh[1]]; xy =[(WH[0]-wh[0])/2, (WH[1]-wh[1])/2 ]; this.graphics.drawImage(this.image,xy[0],xy[1],wh[0],wh[1]); WH = wh = xy =null;} flower=w.tabs[2].add ("image", undefined, File ("~/\Desktop/\xxx.jpg")); flower.size =[300,300]; /* Pan1.add('radioButton {text: "B2. Enter Here2"}'); Pan1.add('radioButton {text: "B3. Enter Here3"}'); Pan1.add('radioButton {text: "B4. Enter Here4"}'); Pan1.add('radioButton {text: "B1. Enter Here5"}'); Pan1.add('radioButton {text: "B2. Enter Here6"}'); Pan1.add('radioButton {text: "B3. Enter Here7"}'); Pan1.add('radioButton {text: "B4. Enter Here8"}'); */
... View more