STE-Industries: utilities testing
Interpolator.cpp
Go to the documentation of this file.
1 
14 # include "Graphic.h"
15 # include "Interpolator.h"
16 
17 namespace GraphicSpace
18 {
19 
31 
32 Interpolator::Interpolator(register unsigned int thisSize) noexcept(false):
33  Size(thisSize), SquaredSize(thisSize * thisSize), InterpolationTable()
34  {
35  register unsigned int Row;
36  register unsigned int Column;
37 
38  for (Row = 0; Row < Size; ++Row)
39  for (Column = 0; Column < Size; ++Column)
40  {
41  InterpolationTable [Row] [Column].UpperLeft =
42  (Size - Row) * (Size - Column);
43  InterpolationTable [Row] [Column].UpperRight =
44  Row * (Size - Column);
45  InterpolationTable [Row] [Column].LowerLeft =
46  (Size - Row) * Column;
47  InterpolationTable [Row] [Column].LowerRight =
48  Row * Column;
49  }
50  }
51 
52 }
Graphic.h
Interpolator.h
GraphicSpace
Definition: Bitmap.cpp:29
GraphicSpace::Interpolator::Interpolator
Interpolator(register unsigned int thisSize) noexcept(false)
Definition: Interpolator.cpp:32