<!doctype HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Representation Samples</title> <link rel="stylesheet" type="text/css" href="../style.css"> </head> <body> <h1>Image Representation Samples</h1> <p>See the <a href="rep_guide.html">Representation Guide</a> for simple image representation samples.</p> <h3><a name="im_info">Information</a></h3> <p>This is a command line application that displays information obtained from a file using the IM I/O functions, basically <b>imFile</b> functions. It depends only on the IM main library.</p> <p>Here is an output sample:</p> <pre>IM Info File Name: exif_test.tif File Size: 9.00 Mb Format: TIFF - Tagged Image File Format Compression: NONE Image Count: 1 Image #0 Width: 2048 Height: 1536 Color Space: RGB Has Alpha: No Is Packed: Yes Is Top Down: Yes Data Type: byte Data Size: 9.00 Mb Attributes: YResolution: 72.00 XResolution: 72.00 DateTime: 2004:01:14 11:30:11 Make: SONY ResolutionUnit: DPI Model: CD MAVICA Photometric: 2</pre> <p>You can view the source code here: <a href="../download/im_info.cpp"> im_info.cpp</a></p> <h3><a name="im_view">View Using IUP and CD</a></h3> <p>This application uses IUP and CD to create a window with a canvas and draw the image into that canvas. It is a very simple application, no zoom nor scrollbar management. The image is obtained from a file using the IM I/O functions, but using the <b>imImage</b> structure to make the implementation easier.</p> <p>For more about IUP see <a target="_blank" href="http://www.tecgraf.puc-rio.br/iup"> http://www.tecgraf.puc-rio.br/iup</a> and more about CD see <a target="_blank" href="http://www.tecgraf.puc-rio.br/cd"> http://www.tecgraf.puc-rio.br/cd</a>.</p> <p>You can view the source code here: <a href="../download/im_view.c"> im_view.c</a>, or download it with some makefiles <a href="../download/im_view.zip">im_view.zip</a>.</p> </body> </html>