Ejemplo n.º 1
0
 public void SetModeY(AddressMode mode)
 {
     _AddressReadY = _AddressWriteY = mode.GetFunction(_Bitmap.Height);
     if (mode == AddressMode.Clamp)
     {
         _AddressWriteY = y => (y >= 0 && y < _Bitmap.Height) ? y : -1;
     }
 }
Ejemplo n.º 2
0
 public void SetModeX(AddressMode mode)
 {
     _AddressReadX = _AddressWriteX = mode.GetFunction(_Bitmap.Width);
     if (mode == AddressMode.Clamp)
     {
         _AddressWriteX = x => (x >= 0 && x < _Bitmap.Width) ? x : -1;
     }
 }