some verbs for image handling are now available in the jgtk locale.

argb=. readimg filenem
argb=. getimg data

argb writeimg filename [ ; 'jpeg|png|ico|bmp' [ ; 'quality|compression' ; 
'[0,100]|[0,9]' ]]
data=. argb putimg 'jpeg|png|ico|bmp' [ ; 'quality|compression' ; 
'[0,100]|[0,9]' ]

argb=. clipreadimg''
clipwriteimg argb

getimg and putimg operates on memory data rather file
argb is rank-2 integer array
data is rank-1 byte array

actual available file formats depend on gtk binary.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to