Dynamic application of a rendering scale factor
Abstract
Technologies are described herein for providing dynamic application of a rendering scale factor. In some configurations, when a command for scaling a document is received, the technologies described herein selectively apply a rendering scale factor to select elements based on contextual information related to the elements and/or other elements of a document. A computing device may render a document having an element, such as an image, and other elements, such as text. Upon receiving a command to apply a rendering scale factor to the document, techniques herein determine contextual information related to the image. Based on the contextual data, the image is scaled based on the rendering scale factor, a weighted rendering scale factor or kept at its original size. By selectively applying the rendering scale factor to certain elements, the layout of the document may be preserved even when a user zooms into or out of the document.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A computer-implemented method, comprising:
rendering, at a computing device, a document including an image; receiving a command to apply a rendering scale factor to the document; determining contextual information associated with the image; determining if the rendering scale factor is to be applied to the image based on the contextual information associated with the image; and rendering the document based on the rendering scale factor, wherein rendering the document includes the application of the rendering scale factor to the image based on the contextual information associated with the image.
2 . The computer-implemented method of claim 1 , further comprising:
determining contextual information associated with text of the document; determining if the contextual information associated with the image is contextually aligned with the contextual information associated with the text of the document; and applying the rendering scale factor to the image if the contextual information associated with the image is contextually aligned with the contextual information associated with the text of the document.
3 . The computer-implemented method of claim 1 , further comprising:
determining contextual information associated with text of the document; determining if the contextual information associated with the image is graphically aligned with the contextual information associated with the text of the document; and applying the rendering scale factor to the image if the contextual information associated with the image is graphically aligned with the contextual information associated with the text of the document.
4 . The computer-implemented method of claim 1 , wherein rendering the document comprises determining a weighted value based on the contextual information associated with the image, and wherein the application of the rendering scale factor to the image is further based on the weighted value.
5 . The computer-implemented method of claim 1 , wherein rendering the document comprises:
determining contextual information associated with text of the document; and determining a weighted value based on the contextual information associated with the image and the contextual information associated with text of the document, wherein the application of the rendering scale factor to the image is further based on the weighted value.
6 . The computer-implemented method of claim 1 , wherein the application of the rendering scale factor to the image based on the contextual information includes not applying the rendering scale factor to the image.
7 . The computer-implemented method of claim 1 , wherein the document further comprises a second image, and wherein rendering the document comprises:
determining contextual information associated with the second image; and applying a weighted rendering scale factor to the second image based on the contextual information associated with the second image.
8 . A computer, comprising:
a processor; and a computer-readable storage medium in communication with the processor, the computer-readable storage medium having computer-executable instructions stored thereupon which, when executed by the processor, cause the computer to
render a document including a plurality of elements,
receive a command to apply a rendering scale factor to the document,
determine contextual information associated with the image,
determine if the rendering scale factor is to be applied to the image based on the contextual information associated with the image, and
render the document based on the rendering scale factor, wherein rendering the document includes the application of the rendering scale factor to the image based on the contextual information associated with the image.
9 . The computer of claim 8 , wherein the computer-readable storage medium has further computer-executable instructions stored thereon that cause the computer to:
determine contextual information associated with text of the document; determine if the contextual information associated with the image is contextually aligned with the contextual information associated with the text of the document; and apply the rendering scale factor to the image if the contextual information associated with the image is contextually aligned with the contextual information associated with the text of the document.
10 . The computer of claim 8 , wherein the computer-readable storage medium has further computer-executable instructions stored thereon that cause the computer to:
determine contextual information associated with text of the document; determine if the contextual information associated with the image is graphically aligned with the contextual information associated with the text of the document; and apply the rendering scale factor to the image if the contextual information associated with the image is graphically aligned with the contextual information associated with the text of the document.
11 . The computer of claim 8 , wherein rendering the document comprises determining a weighted value based on the contextual information associated with the image, and wherein the application of the rendering scale factor to the image is further based on the weighted value.
12 . The computer of claim 8 , wherein rendering the document comprises:
determining contextual information associated with text of the document; and determining a weighted value based on the contextual information associated with the image and the contextual information associated with text of the document, wherein the application of the rendering scale factor to the image is further based on the weighted value.
13 . The computer of claim 8 , wherein the application of the rendering scale factor to the image based on the contextual information includes not applying the rendering scale factor to the image.
14 . The computer of claim 8 , wherein the document further comprises a second image, and wherein rendering the document comprises:
determining contextual information associated with the second image; and applying a weighted rendering scale factor to the second image based on the contextual information associated with the second image.
15 . A computer-readable storage medium having computer-executable instructions stored thereupon which, when executed by a computer, cause the computer to:
render a document including a plurality of elements; receive a command to apply a rendering scale factor to the document; determine contextual information associated with the image; determine if the rendering scale factor is to be applied to the image based on the contextual information associated with the image; and render the document based on the rendering scale factor, wherein rendering the document includes the application of the rendering scale factor to the image based on the contextual information associated with the image.
16 . The computer-readable storage medium of claim 15 , wherein the computer-readable storage medium has further computer-executable instructions stored thereon that cause the computer to:
determine contextual information associated with text of the document; determine if the contextual information associated with the image is contextually aligned with the contextual information associated with the text of the document; and apply the rendering scale factor to the image if the contextual information associated with the image is contextually aligned with the contextual information associated with the text of the document.
17 . The computer-readable storage medium of claim 15 , wherein the computer-readable storage medium has further computer-executable instructions stored thereon that cause the computer to:
determine contextual information associated with text of the document; determine if the contextual information associated with the image is graphically aligned with the contextual information associated with the text of the document; and apply the rendering scale factor to the image if the contextual information associated with the image is graphically aligned with the contextual information associated with the text of the document.
18 . The computer-readable storage medium of claim 15 , wherein rendering the document comprises determining a weighted value based on the contextual information associated with the image, and wherein the application of the rendering scale factor to the image is further based on the weighted value.
19 . The computer-readable storage medium of claim 15 , wherein rendering the document comprises:
determining contextual information associated with text of the document; and determining a weighted value based on the contextual information associated with the image and the contextual information associated with text of the document, wherein the application of the rendering scale factor to the image is further based on the weighted value.
20 . The computer-readable storage medium of claim 15 , wherein the application of the rendering scale factor to the image based on the contextual information includes not applying the rendering scale factor to the image.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.