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/resize.c

    r2843 r5846  
    33int resize (int argc, char **argv) {
    44
    5   char buffer[128], buffer2[128], *end;
     5  char *end;
    66  double NX, NY;
    77  int N, Source, Nsource, IsImage;
     
    4949  if (!strcmp (end, "cm")) { NY *= 38; }
    5050
    51   write (Source, "RSIZ", 4); /* tell Source to resize the image */
    52 
    53   sprintf (buffer, "%d %d", (int) NX, (int) NY);
    54   sprintf (buffer2, "NBYTES: %6d ", strlen (buffer));
    55   write (Source, buffer2, 16);
    56   write (Source, buffer, strlen (buffer));
    57 
     51  KiiResize (Source, NX, NY);
    5852  return (TRUE);
    59 
    6053}
    6154
Note: See TracChangeset for help on using the changeset viewer.