In this method the selection bounds return object is given as a new RealRect(xMin, yMin, xMax - xMin, yMax - yMin) (see constructor). xMin/xMax/yMin/yMax are found by calling realMin(dimension) or realMax(dimension) on the Data object of the input ImageDisplay's DataView or from the ImageDisplay's bounds itself. For example, an image image of size 256/256, xMin/yMin will be 0 and xMax/yMax will be 255. This causes image.width and image.height, according to the above, to be 255, which is wrong, since it causes plugins like this one to not calculate the last column/row (see the driving for-loop here).
In this method the selection bounds return object is given as a
new RealRect(xMin, yMin, xMax - xMin, yMax - yMin)(see constructor).xMin/xMax/yMin/yMaxare found by callingrealMin(dimension)orrealMax(dimension)on theDataobject of the inputImageDisplay'sDataViewor from theImageDisplay's bounds itself. For example, an imageimageof size 256/256,xMin/yMinwill be 0 andxMax/yMaxwill be 255. This causesimage.widthandimage.height, according to the above, to be 255, which is wrong, since it causes plugins like this one to not calculate the last column/row (see the driving for-loop here).