Changeset 8 in Sophya for trunk/SophyaPI/PI/piimage.cc
- Timestamp:
- Mar 1, 1996, 5:54:25 PM (30 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/piimage.cc
r7 r8 128 128 } 129 129 130 /* --Methode-- */ 131 void PIImage::SetOffset(int ox, int oy) 132 { 133 if (img == NULL) {offx = offy = 0; return; } 134 if (ox < 0) ox = 0; 135 if (ox >= (img->XSize()-1)) ox = img->XSize()-2; 136 if (oy < 0) oy = 0; 137 if (oy >= (img->YSize()-1)) oy = img->YSize()-2; 138 offx = ox; offy = oy; 139 return; 140 } 130 141 131 142 /* --Methode-- */
Note:
See TracChangeset
for help on using the changeset viewer.