This line checks whether the embedded box will fit in the passed image, presumably to avoid runtime exceptions.
However, both x and y locations are checked against the second dimension of the image, when I believe y should be checked against the first dimension. This stopped the exceptions for me. Maybe issuing a warning that some boxes are not being painted would be useful.
This line checks whether the embedded box will fit in the passed image, presumably to avoid runtime exceptions.
However, both
x
andy
locations are checked against the second dimension of the image, when I believey
should be checked against the first dimension. This stopped the exceptions for me. Maybe issuing a warning that some boxes are not being painted would be useful.