image size and depth
Dar Scott
dsc at swcp.com
Sun Aug 8 00:37:02 EDT 2004
On Aug 7, 2004, at 8:21 PM, Chipp Walters wrote:
> To my knowledge, you can't set dpi from within REV. But, as dpi is not
> related to image resolution, you can perhaps actually set it in the
> binary data file.
This handler might do what you suggest. It is completely untested, but
might give an idea of what should be done.
on setJPEGdpi @jpeg, dpi -- dpi less than 256
put numToChar(1) into units -- dots per inch
put numToChar(0) & numToChar(dpi) into encodedDPI
get units & encodedDPI & encodedDPI
put it into char 13 to 17 of jpeg
end setJPEGdpi
Dar Scott
More information about the use-livecode
mailing list