摘要 |
Various technologies and techniques are disclosed for fitting and filling pictures in documents. A selection is received from a user to perform a fill or fit to placeholder operation to insert a picture into a placeholder. A visible image area is calculated which determines what portion of the picture will appear in the placeholder. The user is able to slide the picture back and forth within the placeholder until a desired crop is achieved. The picture is cropped so that the placeholder is kept intact and original aspect ratios of the placeholder and picture are both preserved. When a rotation of the placeholder is different than a rotation of the picture being inserted, then an axis-aligned bounding box is calculated for the picture or the placeholder to complete the fit or fill operation.
|