public void setBounding(int frameNumber, RectangleF boundingBox, float scale, PointF translation) { RectangleF inverseScaleBoundingBox = boundingBox.scaleBound(1 / scale, new PointF(-translation.X / scale, -translation.Y / scale)); var ob = new RectangleLocationMark(frameNumber, inverseScaleBoundingBox); objectMarks[frameNumber] = ob; }