image splitting
- Posted by jxliv7 <jxliv7 at hotmail.com> Dec 03, 2005
- 463 views
Does anyone know how to SPLIT or DICE an image in Euphoria? I'm looking at splitting .bmp (first), .png (second), .gif (fourth), .jpg (fourth) images. For instance, let's say the image to split into smaller images is 800 x 600 pixels: (0,0) - - - (160,0) - - - (320,0) - - - (480,0) - - - (640,0) - - - (800,0) | | | | | | | image 0 0 | image 1 0 | image 2 0 | image 3 0 | image 4 0 | | | | | | | (0,150) - - (160,150) - - (320,150) - - (480,150) - - (640,150) - - (800,150) | | | | | | | image 0 1 | image 1 1 | image 2 1 | image 3 1 | image 4 1 | | | | | | | (0,300) - - (160,300) - - (320,300) - - (480,300) - - (640,300) - - (800,300) | | | | | | | image 0 2 | image 1 2 | image 2 2 | image 3 2 | image 4 2 | | | | | | | (0,450) - - (160,450) - - (320,450) - - (480,450) - - (640,450) - - (800,450) | | | | | | | image 0 3 | image 1 3 | image 2 3 | image 3 3 | image 4 3 | | | | | | | (0,600) - - (160,600) - - (320,600) - - (480,600) - - (640,600) - - (800,600) There are some 3rd party Linux and Windows apps out there, as well as Photoshop and Gimp, but I would rather have something to use in a Euphoria cgi program to create web pages on the fly. That means that the app should be non-Windows (i.e., no Windows APIs, DLLs, etc.). If anyone could point me in the right direction I would be grateful (and of course, share the code). thanks, -- jon