imagedata

Viktoras Didziulis viktoras at ekoinf.net
Wed Apr 11 05:34:58 EDT 2007


The most straightforward image file format suported by Rev afaik is ppm
(portable pixelmap), it consists of just a header and a sequence of RGB
triplets (either in ascii or in binary form): 
http://local.wasp.uwa.edu.au/~pbourke/dataformats/ppm/ 
 
pgm (portable greymap) - header and each cell represented by a single
greyscale value
 
pbm (portable bitmap) - header and each cell represented by 0 or 1 (black
and white) 
 
So ppm/pgm/pbm is more compact than imageData and therefore processing may
be a bit faster. But be warned - I did not try this yet in Revolution, I
used to work with these formats in other languages before started playing
with Rev. However now using imageData mostly - but if ppm still is the same
real ppm in the text of image, then it is worth to try - performance gain
may be possible... 
 
All the best 
Viktoras



More information about the use-livecode mailing list