IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 27, 2005, 5:06:32 AM (21 years ago)
Author:
eugene
Message:

converting to use libkapa commands instead of raw graph commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/ps.c

    r3693 r5846  
    33int ps (int argc, char **argv) {
    44
    5   char filename[1024], buffer[64];
     5  char filename[1024];
    66  int N, Source, Nsource, RawImage, NoScale, IsImage;
    77 
     
    5656 
    5757  /* tell Ximage/Xgraph to ps the image */
    58   if (RawImage) SendGraphCommand (Source, 4, "PSRW");
    59   if (NoScale)  SendGraphCommand (Source, 4, "PSNS");
    60   if (!RawImage && !NoScale) SendGraphCommand (Source, 4, "PSIT");
    61 
    62   /* I need to fix kapa and kii to read NBYTES, etc like other messages */
    63   SendGraphCommand (Source, 16, "LEN: %11d", strlen(filename));
    64   write (Source, filename, strlen(filename));
    65   read (Source, buffer, 4);
    66 
     58  KiiPS (Source, NoScale, RawImage, filename);
    6759  return (TRUE);
    6860}
Note: See TracChangeset for help on using the changeset viewer.