Changeset 8 in Sophya for trunk/SophyaPI/PI/piimage.cc


Ignore:
Timestamp:
Mar 1, 1996, 5:54:25 PM (30 years ago)
Author:
eros
Message:

Version X OK apres PIOptmenu, et modif ds pibwdgx.cc - Ajout de pidraw

et pihisto - Nettoyage et ajout de pidemo. Reza

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/piimage.cc

    r7 r8  
    128128}
    129129
     130/* --Methode-- */
     131void PIImage::SetOffset(int ox, int oy)
     132{
     133if (img == NULL)  {offx = offy = 0;  return; }
     134if (ox < 0)  ox = 0;
     135if (ox >= (img->XSize()-1))  ox = img->XSize()-2;
     136if (oy < 0)  oy = 0;
     137if (oy >= (img->YSize()-1))  oy = img->YSize()-2;
     138offx = ox;  offy = oy;
     139return;
     140}
    130141
    131142/* --Methode-- */
Note: See TracChangeset for help on using the changeset viewer.