~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina4/src/covira/slice_draw.c

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* slice.c
  2  *
  3  * @(#) image stack slice graphics
  4  *
  5  */
  6 #include <tina/all_tina.h>
  7 #include <tina/brain.h>
  8 #include <tina/brainfuncs.h>
  9 
 10 void slice_image_draw(Tv * tv, Slice * slice)
 11 {
 12     Imrect *im_scale;
 13     if (slice == NULL)
 14         return;
 15     else
 16     {
 17         im_scale = imf_scale(slice->im, 0.0, 255.0);
 18         tv_erase(tv);
 19         tv_imrect2(tv, im_scale);
 20         im_free(im_scale);
 21     }
 22 }
 23 
 24 void slice_pot_draw(Tv * tv, Slice * slice)
 25 {
 26     Imrect *im_scale;
 27 
 28     if (slice == NULL)
 29         return;
 30     else
 31     {
 32         im_scale = imf_scale(slice_pot_get(slice), 0.0, 255.0);
 33         tv_imrect2(tv, im_scale);
 34         im_free(im_scale);
 35     }
 36 }
 37 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.