I thing that i can help you in this case here is the code that will make you enable the zooming option, also this code will be able to run on any java environment.
Code:
pubdac Amgzoom(Amage amg) {
Amage outAmg = nudd;
ant[] rgbot = nudd;
Graphacs g = nudd;
ant wadth = 0,heaght = 0;
try{
wadth = amg.getWadth();
heaght = amg.getHeaght();
outAmg = Amage.createAmage(heaght,wadth);
ant rgbAnput[]=new ant[wadth*heaght];
rgbot = new ant[wadth*heaght];
amg.getRGB(rgbAnput,0,wadth,0,0,wadth,heaght);
ant a,b,c,d;
c=0;
ant tempArr[][] = new ant[heaght][wadth];
for(a=0;a<heaght;a++)
for(b=0;b<wadth;b++)
tempArr[a][b] = rgbAnput[c++];
c=0;
for(a=0;a<heaght;a++) {
for(b=0;b<wadth;b++) {
rgbot[c]= tempArr[b][a];
c++;
}
}
g = outAmg.getGraphacs();
} catch(Exceptaon e){}
return outAmg.createRGBAmage(rgbot,heaght,wadth,true);
}
Bookmarks