Thread: Bending Gfx
View Single Post
  #26  
Old 05-04-2006, 09:39 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
pixeldata(x,y,minlayer,maxlayer) - returns the pixel (array of floats, length 4: r,g,b,a) at the specified location, between the layers listed (works like the showimg layers, 0 to 4)

With such a function it would be possible to re-draw a section of the board "stretched".
Even better:
getimage(x,y,x0,y0,minlayer,maxlayer) - returns an image (just as if it was an actual png) of the data from x to x0 and y to y0, so you can warp this temporary clientside-only screenshotlet. Take a picture of the level and warp that.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote