Changeset 1508
- Timestamp:
- Aug 11, 2004, 5:05:48 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageManip.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageManip.c
r1501 r1508 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-08-12 0 2:46:28 $13 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-12 03:05:48 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 552 552 553 553 psImage* psImageRotate(psImage* out, 554 const psImage* in, float angle, float unexposedValue, psImageInterpolateMode mode) 554 const psImage* in, 555 float angle, 556 float unexposedValue, 557 psImageInterpolateMode mode) 555 558 { 556 559 if (in == NULL) { … … 702 705 // (x-centerX)*sinT; 703 706 704 int outCols = (int)(abs(numCols * cosT) + abs(numRows * sinT)) + 1;705 int outRows = (int)(abs(numCols * sinT) + abs(numRows * cosT)) + 1;707 int outCols = round(abs(numCols * cosT) + abs(numRows * sinT)) + 1; 708 int outRows = round(abs(numCols * sinT) + abs(numRows * cosT)) + 1; 706 709 float minX = (float)outCols / -2.0f; 707 710 int intMinY = outRows / -2;
Note:
See TracChangeset
for help on using the changeset viewer.
