Beispiel #1
0
	inline void BinaryBoard::AssertCompatibleTo(Rect const *rect) const
	{
		if (rect == nullptr)
		{
			throw S2PException(S2PExceptionType::NotImplenmented, nullptr);
		}

		Rect canvasRect { 0, 0, boardSize * blockSize };

		if (!canvasRect.IsContains(*rect))
		{
			throw ImageOperationException(ImageOperationExceptionType::InvalidImageSize);
		}
	}