in reply to Re^3: Display partial image
in thread Display partial image

Still, I'm not getting the desired because the entire width of the image is displayed.

Your browser apparently disregards the width for div!? You could try floating it or using something other than div (such as a table).

At stage 2, the next (moving rightward first), the next 10px by 10px is displayed to show the progress.

What does this have to do with Perl?

Replies are listed 'Best First'.
Re^5: Display partial image
by Anonymous Monk on May 16, 2010 at 09:03 UTC

    If the image were small, I could slice it up by hand (using Photoshop or similar) and display, say, piece One and piece Two out of 20 pieces to show the stage (of the game). But I wanted to do it programmatically because the image is quite big and time-consuming to slice.

    I'm already using Perl for my site, so I thought I could use it for this slicing job.

      Note that you could also split the image using tools on your own machine.