Storage medium, information processing apparatus, and control method for controlling the same
A storage medium, storing an application program for editing a content, stores a program that causes a computer of an information processing apparatus to execute, based on information regarding a first color of a predetermined region including the content and information regarding a color of the content, changing the first color of the predetermined region to a second color different from the first color.
1 . A non-transitory computer-readable storage medium storing one or more programs including an application program for editing content, the one or more programs including instructions, which when executed by one or more processors of an information processing apparatus, cause the information processing apparatus to perform operations comprising:
converting a first set of values representing a first color of a predetermined region including the content to a second set of values representing the first color of the predetermined region;
converting a third set of values representing a color of the content to a fourth set of values representing the color of the content;
determining respective differences between each value of the second set of values and each corresponding value of the fourth set of values;
comparing the respective differences with a predetermined threshold; and
based on a result of the comparison, changing the first color of the predetermined region to a second color different from the first color.
2 . The non-transitory computer-readable storage medium according to claim 1 ,
wherein the fourth set of values representing the color of the content is information regarding a color of a region of an end portion of the content, and
wherein the operations further comprise determining the color of the region of the end portion of the content.
3 . The non-transitory computer-readable storage medium according to claim 2 ,
wherein the operations further comprise, based on the information regarding the color of the region of the end portion of the content and the second set of values representing the first color, determining whether visibility is low, and
wherein, in a case where it is determined that the visibility is low, the operations further comprise changing the first color to the second color based on the information regarding the color of the region of the end portion of the content and the second set of values representing the first color.
4 . The non-transitory computer-readable storage medium according to claim 3 , wherein the case where it is determined that the visibility is low is a case where it is determined that a difference between the information regarding the color of the region of the end portion of the content and the second set of values representing the first color is less than or equal to a predetermined threshold.
5 . The non-transitory computer-readable storage medium according to claim 3 , wherein the case where it is determined that the visibility is low is a case where all of the differences between values regarding hue, saturation, and luminance of the region of the end portion of the content and values regarding hue, saturation, and luminance of the predetermined region is less than or equal to a predetermined threshold.
6 . The non-transitory computer-readable storage medium according to claim 1 , wherein the operations further comprise determining the second color.
7 . The non-transitory computer-readable storage medium according to claim 6 , wherein the program further causes the computer to execute setting the second color to a color of the predetermined region.
8 . The non-transitory computer-readable storage medium according to claim 7 , wherein the operations further comprise displaying the predetermined region which includes the content and in which the second color is set on a display unit of the information processing apparatus.
9 . The non-transitory computer-readable storage medium according to claim 1 , wherein the operations further comprise changing the first color to the second color so that a difference between information regarding a color of a region of an end portion of the content and information regarding the first color has a value greater than a predetermined threshold.
10 . The non-transitory computer-readable storage medium according to claim 1 , wherein the operations further comprise changing the first color to the second color so that at least one of differences between values regarding hue, saturation, and luminance of a region of an end portion of the content and values regarding hue, saturation, and luminance of the predetermined region has a value greater than a predetermined threshold.
11 . The non-transitory computer-readable storage medium according to claim 1 , wherein the operations further comprise changing the first color to the second color based on an editing operation on the content.
12 . The non-transitory computer-readable storage medium according to claim 11 , wherein the editing operation is an operation for enlarging the content.
13 . The non-transitory computer-readable storage medium according to claim 11 , wherein the editing operation is an operation for reducing an end portion of the content.
14 . The non-transitory computer-readable storage medium according to claim 11 , wherein the editing operation is an operation for adding an object to the content.
15 . The non-transitory computer-readable storage medium according to claim 11 , wherein the editing operation is an operation of placing an object in a region of an end portion of the content.
16 . The non-transitory computer-readable storage medium according to claim 14 , wherein the object is a text object.
17 . The non-transitory computer-readable storage medium according to claim 14 , wherein the object is a graphic object.
18 . The non-transitory computer-readable storage medium according to claim 1 , wherein the operations further comprise giving a print instruction to print the content to a printer.
19 . An information processing apparatus configured to edit content, the information processing apparatus comprising:
one or more processors; and
at least one memory storing instructions, which when executed by the one or more processors, cause the information processing apparatus to:
convert a first set of values representing a first color of a predetermined region including the content to a second set of values representing the first color of the predetermined region;
convert a third set of values representing a color of the content to a fourth set of values representing the color of the content;
determine respective differences between each value of the second set of values and each corresponding value of the fourth set of values;
compare the respective differences with a predetermined threshold; and
based on a result of the comparison, change the first color of the predetermined region to a second color different from the first color.
20 . A control method for editing content, the control method comprising:
converting a first set of values representing a first color of a predetermined region including the content to a second set of values representing the first color of the predetermined region;
converting a third set of values representing a color of the content to a fourth set of values representing the color of the content;
determining respective differences between each value of the second set of values and each corresponding value of the fourth set of values;
comparing the respective differences with a predetermined threshold; and
based on a result of the comparison, changing the first color of the predetermined region to a second color different from the first color.