home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Updates / Perl / Non-RPC / Docs / RISCOS-Library-Docs / JPEG.pm < prev    next >
Text File  |  1999-04-17  |  988b  |  32 lines

  1. NAME
  2.     RISCOS::JPEG -- perl interface to RISC OS JPEG SWIs.
  3.  
  4. SYNOPSIS
  5.         use RISCOS::JPEG 'jpeg_info';
  6.         ($width, $height, $xdpi, $ydpi, $bw, $no_trans, $ratio) = jpeg_info $jpeg;
  7.  
  8.  
  9. DESCRIPTION
  10.     This module provides a perl interface to RISC OS JPEG SWIs.
  11.  
  12.     jpeg_info <JPEG> [,<DPI>]
  13.         returns an array of `($width, $height, $xdpi, $ydpi, $bw,
  14.         $no_trans, $ratio)' for the JPEG contained in the scalar
  15.         passed. `$width' and `$height' are in pixels, `$xdpi' and
  16.         `$ydpi' are absolute Dots Per Inch if `$ratio' is false. If
  17.         `$ratio' is true and *DPI* is defined then it is returned as
  18.         the X DPI, and the returned Y DPI is at the correct ratio.
  19.         `$bw' is true if the JPEG is greyscale, `$no_trans' is true
  20.         if transformed plots are unavailable.
  21.  
  22.     jpeg_size <JPEG> [,<DPI>]
  23.         returns `($width, $height)' in Draw units of the JPEG.
  24.  
  25.  
  26. BUGS
  27.     Not tested enough.
  28.  
  29. AUTHOR
  30.     Nicholas Clark <nick@unfortu.net>
  31.  
  32.