Program, information processing apparatus, and method for controlling the same
Patent Information
- Application Number
- JP2023024843
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2026-02-16
AI Technical Summary
Existing application programs do not effectively improve visibility when editing content images by changing background colors based on brightness differences, leading to low visibility of content edges and reduced usability.
An application program that edits content by determining the color of a content edge area and changing the background color to a different color to enhance visibility, ensuring a significant difference in hue, saturation, or brightness with the edge color.
Improves user visibility and usability of content editing operations by making content edges more distinguishable from the background, reducing the likelihood of undesired print results and enhancing the editing experience.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a program, an information processing device, and a control method thereof. [Background technology]
[0002] There are known application programs for editing and generating content such as documents and posters. In such programs, it is common for a user to edit the content while visually checking the content. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2018-132648 Summary of the Invention [Problem to be solved by the invention]
[0004] The method of Patent Document 1 discloses a technique for improving visibility by temporarily changing the background image based on the brightness difference between the content image and the background image when the brightness difference is equal to or less than a certain value. However, it does not disclose how to improve visibility in an application program that edits the content image. [Means for solving the problem]
[0005] An application program capable of editing content, the program causing an information processing device computer to execute a modification step of changing a first color of a specified area containing the content to a second color different from the first color based on information regarding the first color of the specified area and information regarding the color of the content. Effect of the Invention
[0006] According to the present invention, it is possible to improve the user's visibility in an application program. [Brief description of the drawings]
[0007] [Figure 1] 1 is a block diagram showing a configuration of an information processing device according to a first embodiment. [Diagram 2] FIG. 2 is a block diagram showing a software configuration according to the first embodiment. [Diagram 3] FIG. 2 is a diagram showing an example of a screen configuration of a content editing application according to the first embodiment. [Figure 4] FIG. 4 is a flowchart of a background color change process according to the first embodiment. [Diagram 5] FIG. 4 is a diagram showing an end portion of a content according to the first embodiment. [Figure 6] FIG. 11 is a diagram showing an example of a screen configuration of a content editing application when background color change processing according to the first embodiment is executed. [Figure 7] FIG. 11 is a flowchart of a background color change process according to the second embodiment. [Figure 8] 13 is a diagram showing an example of a screen configuration of a content editing application when a background color change process is executed during an enlargement operation according to the first embodiment. FIG. [Figure 9] FIG. 11 is a diagram showing an example of a screen configuration of a content editing application when a background color change process is executed during a content editing operation according to the second embodiment. [Figure 10] FIG. 2 is a diagram showing a main screen of a content editing application according to the first embodiment. [Figure 11] FIG. 2 is a diagram showing a content selection screen according to the first embodiment. [Figure 12] FIG. 4 is a diagram showing a content details screen according to the first embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] [First embodiment] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. Note that the following embodiments do not limit the scope of the present invention, and not all of the combinations of features described in the embodiments are necessarily essential to the solution of the present invention.
[0009] <Embodiment 1> FIG. 1 is a block diagram showing a schematic configuration of an information processing apparatus according to the first embodiment.
[0010] 1, a host computer 1, which is an example of a data processing device, is a computer such as a personal computer or a workstation, or a mobile terminal (terminal) such as a smartphone or a tablet PC. The host computer 1 includes a CPU 2. When the host computer 1 is started up, the CPU 2 reads an operating system (OS) 15 stored in an external storage device 12 into a RAM 4 by a program stored in a ROM 3. The host computer 1 performs overall system control via a system bus 14 by the CPU 2 operating the OS 15.
[0011] The display controller 9, under the control of the CPU 2, controls the display 6 (display unit, display device) which can display various information such as error warnings and processing status. The keyboard controller 10 controls the keyboard 7 which is an input device. The pointing device controller 11 controls the pointing device 8 which is an input device. In the case of a smartphone or tablet PC, the keyboard 7 and pointing device 8 are not included, and a touch sensor can be mounted on the display 6 to provide functions equivalent to those of the keyboard 7 and pointing device 8.
[0012] An OS 15 is stored in the external storage device (HDD, ROM) 12. The external storage device (CD-ROM drive) 13 can read data stored in a CD-ROM. In this embodiment, an application 16 is stored in the external storage device (HDD, ROM) 12 after being installed in the host computer 1. In the case of a smartphone or tablet PC, the storage device may consist only of the external storage device (HDD, ROM) 12 in the terminal.
[0013] The application 16 is software that realizes a specific task on the host computer 1 in accordance with a user's operation. The application 16 can display, edit, and print, for example, a document file.
[0014] The printer driver 17 is software that generates commands that can be interpreted by the printer 20 in accordance with instructions from the application 16 and issues printing instructions by sending image data for printing to the printer 20.
[0015] The printer 20 comprises a print engine 23 which operates the printer head and transports paper, and a printer controller 22 which interprets print data received from the host computer 1 and controls the print engine 23.
[0016] The communication unit 18 is configured to connect to a communication unit 21 such as the printer 20 and execute data communication. For example, the communication unit 18 can be connected to an access point (not shown) in the communication unit 21. The communication unit 18 can connect to an access point in the communication unit 21, so that the host computer 1 and the printer 20 can communicate with each other. The communication unit 18 may directly communicate with the communication unit 21 by wireless communication, or may communicate via an external access point (not shown) that exists outside the host computer 1 or the communication unit 21. Examples of wireless communication methods include Wi-Fi (Wireless Fidelity) (registered trademark) and Bluetooth (registered trademark). Examples of external access points include devices such as wireless LAN routers. In this embodiment, a method in which the host computer 1 and the printer 20 are directly connected to each other without going through an external access point is called a direct connection method. A method in which the host computer 1 and the printer 20 are connected to each other through an external access point is called an infrastructure connection method.
[0017] Here, the division of processing between the host computer 1 and the printer 20 is shown as an example above, but the division is not limited to this and may be in another form.
[0018] FIG. 2 is a block diagram showing a software configuration according to the first embodiment.
[0019] In this embodiment, the application 16 stored in the host computer 1 is a content generation application 16 capable of editing, displaying, and issuing print instructions for documents, but the configuration of this software may be applied to software having other purposes as well. The content generation application 16 is installed and operated on a mobile terminal, but may also operate as a Web application program that operates on a browser. In the case of operating on a browser, the content generation application 16, which is a Web application program, edits the content on the browser, and the content generation application 16 in the host computer 1 executes the print process.
[0020] The application control unit 201 controls the overall processing of the content generation application 16. The screen drawing processing unit 202 creates information to be displayed on the display 6 according to instructions from the application control unit 201. The input processing unit 203 converts input from the keyboard 7 or pointing device 8 into commands within the application 16. For example, when characters are input from the keyboard 7, the input character information is transmitted to the application control unit 201. The print processing unit 204 issues a print command to the printer 20. The print processing unit 204 receives image information and document information from the content management unit 206, converts it into print data that can be interpreted by the printer 20, and transmits it to the printer 20 via the communication unit 18.
[0021] The template management unit 205 manages template data of pre-designed content.
[0022] The templates are stored on an external server (not shown), and are obtained from the external server when the content generation application 16 is started. The templates may be stored in advance in the content generation application 16, and a list of templates may be stored in the template management section when the content generation application 16 is started. The template data specifies information related to editing the content, such as initial values for the font type, color, size, etc. of the text in the content, and information related to figures (objects), images, etc. (for example, layout information for arranging objects).
[0023] Then, the template management unit 205 reads the template data according to an instruction from the application control unit 201, and returns data for editing the content to the application control unit 201.
[0024] The content management unit 206 manages the content handled by the content generation application 16. When a user edits a template to create desired content, the content management unit 206 saves the content, reads out saved data, and returns the content to the application control unit 201.
[0025] The startup processing unit 207 is a process executed when the content generation application 16 is started. When the content generation application 16 is started by a startup command from another application or the OS, the startup processing unit 207 obtains information in the startup command and returns it to the application control unit 201, thereby controlling the startup of the content generation application 16.
[0026] Fig. 10 is a diagram showing a main screen of the content generation application 16 in this embodiment. On the screen shown in Fig. 10, a printer registration button 400, a menu button 401, a main display area 402, a new creation button 403, a work display button 404, a favorites display button 405, and a notice display button 406 are displayed.
[0027] When any of buttons 403 to 406 is tapped, content according to the tapped button is displayed in main display area 402. Fig. 10 shows an example of the display in main display area 402 when content generation application 16 is launched or when new creation button 403 for creating new print data is tapped.
[0028] When the printer registration button 400 is tapped, a printer registration screen (not shown) is displayed. The printer to which the print job is to be sent is selected and set by the registration process via the printer registration screen. When the menu button 401 is tapped, various information related to the content generation application 16, such as version information and license information, is displayed.
[0029] In the main screen shown in FIG. 10, a plurality of category selection buttons 407 are displayed in the main display area 402. The category selection buttons 407 correspond to the categories of works that can be printed by the content generation application 16 of this embodiment. In FIG. 10, the category selection buttons 407 display text such as "Calendar" and "Card", but icons corresponding to the respective categories may be displayed together with the text. When any of the category selection buttons 407 is tapped, the display object of the touch panel display 204 transitions to a screen for printing the content of the category corresponding to the tapped category selection button 407. Specifically, for example, when the category selection button 407 indicated as "Paper Craft" is tapped, the display transitions to a screen for creating a paper craft. Similarly, when the category selection button 407 indicated as "Calendar" is tapped, the display transitions to a screen for creating a calendar. In addition, the category selection buttons 407 such as "Calendar" and "Card" are included in FIG. 10. When these category selection buttons 407 are selected, a function for executing printing using the content is executed. The content may be the image data itself to be printed, or may be a template in which other image data is arranged. In this embodiment, the content is acquired from the content management server 101, but the content generation application 16 may have the content stored in advance. The content available for printing and the availability of editing functions such as inserting images and text into the content vary depending on the category selection button 407 tapped by the user. In this embodiment, the categories selectable by the category selection button 407 include categories including content that requires assembly after printing. In this embodiment, the category including content that requires assembly after printing is "paper craft." In this embodiment, assembly refers to processing the printed matter by cutting, folding, and pasting the printed matter to create a work of art.Therefore, in this embodiment, the content that requires assembly after printing includes auxiliary image areas such as lines indicating cutting positions, lines indicating folding positions, and glue margins to assist and guide the user in assembling (processing). In addition, the printed matter obtained by printing one piece of content is not limited to one sheet, and may be multiple sheets. For example, in the case of content for creating a work by combining multiple parts, it is necessary to obtain printed matter equivalent to multiple parts, so that the printed matter obtained by printing one piece of content will be multiple sheets. Note that in this embodiment, control is executed that takes into account the time required to create the work, but it is naturally considered that the more parts required to create the work, the longer it will take to create the work.
[0030] When the work display button 404 shown in Fig. 10 is tapped, a list of thumbnails of works saved by the user is displayed in the form of icons in the main display area 402. A work saved by the user is image data to be printed that is created by the user by selecting one of the category selection buttons 407. Note that in this list display, thumbnails may be displayed with the works distinguished by category corresponding to the category selection buttons 407.
[0031] When the favorites display button 405 is tapped, a screen showing a list of contents registered as favorites by the user is displayed in the main display area 402. When the notice display button 406 is tapped, notice information such as a notice of a content update is displayed in the main display area 402.
[0032] Next, a description will be given of a display example when a category selection button 407 is tapped. When any of the category selection buttons 407 is tapped, the screen transitions to a content selection screen that displays a list of contents corresponding to the selected category.
[0033] FIG. 11 is a diagram showing a content selection screen corresponding to "paper craft." The content selection screen includes a back button 500 and a content thumbnail display area 501. When the back button 500 is tapped, the display object by the touch panel display 204 transitions to the screen before transitioning to this screen (the screen in FIG. 10). The content thumbnail display area 501 displays a plurality of content thumbnails 502. The content thumbnails 502 are areas in which the content corresponding to each category is displayed by thumbnails. In particular, the content thumbnails 502 corresponding to "paper craft" are areas in which craft works obtained by assembling a printed matter on which the content corresponding to "paper craft" is printed are displayed by thumbnails. The content thumbnails 502 corresponding to content other than "paper craft" (content that does not require assembly of a printed matter) may be areas in which the content itself is displayed by thumbnails. When any of the content thumbnails 502 is tapped (selected), transition is made to a content details screen showing details of the selected content thumbnail.
[0034] FIG. 12 is a diagram showing a content details screen. The content details screen includes a back button 600, content details 601, a content name 602, a content creation method display button 603, a favorite button 604, and a preview button 605. If the content corresponding to the content details screen is a content for which editing operations such as inserting an image or inserting text can be executed, the preview button 605 becomes an edit button. When the back button 600 is tapped, the display target by the touch panel display 204 transitions to the screen before transitioning to this screen (the screen in FIG. 11). When the content creation method display button 603 is tapped, the print application downloads a file indicating a method for creating a craft work from the content management server 101, and uses the file to display a screen indicating a method for creating a craft work (not shown). The method for creating a craft work is a method for assembling a printed matter on which the content corresponding to the content details screen is printed, and a user can create a craft work by assembling the printed matter according to the method. The file indicating the method for creating a craft work may be a file that is not downloaded from an external server, but may be a file that is included in the content generation application 16 in advance. Also, the content creation method display button 603 is displayed only on the content details screen for content that requires assembly. In this embodiment, the content creation method display button 603 is displayed only on the content details screen for content in the "paper craft" category, and is not displayed on the content details screen for content in categories other than "paper craft."
[0035] When the favorite button 604 is tapped, the content corresponding to the currently displayed content details screen is registered in the favorites. The content registered in the favorites is shown on a screen displayed by tapping the favorite display button 405. When the preview button 605 is tapped, the screen transitions to a preview screen showing a printout (print result) obtained when the content corresponding to the content details screen is printed. In this embodiment, when the content selected on the content selection screen is a content held by the content management server 101, the content generation application 16 downloads the content based on the tapping of the preview button 605 (or the edit button). Then, the content generation application 16 displays a preview screen corresponding to the content based on the downloaded content. Note that the present invention is not limited to this form, and the content generation application 16 may download the content before displaying the content details screen (or while displaying the content details screen) based on the selection of the content on the content selection screen. Furthermore, when the content selected on the content selection screen is a content held in advance by the content generation application 16, the content generation application 16 displays a preview screen based on the content held in advance without downloading from an external server.
[0036] FIG. 3 is a diagram showing an example of the screen configuration of the content generation application 16 according to the first embodiment, and RGB values and HSV values of the content edge color and background color, which will be described later.
[0037] When a preview button 605 is pressed on the content details screen of FIG. 12, the content generation application 16 displays a preview screen 4001 on the display 6. The preview screen 4001 includes a preview area 4002, content 4003, a text addition area 4008, a graphic object addition area 4009, an output paper size selection area 4010, an output printer selection area 4011, a print area 4012, and a zoom control 4013 for the preview display. A save button (not shown) may also be included. When the save button is tapped, the content corresponding to the currently displayed preview screen 4001 is saved. The saved content is shown on a screen that is displayed when the work display button 404 is tapped.
[0038] Note that the preview screen 4001 displays areas 4008 to 4013 for editing and setting the displayed content 4003, but if the displayed content 4003 is not editable, the areas 4008 to 4013 do not need to be displayed.
[0039] Preview area 4002 is an area for displaying a preview of content 4003. Note that the range of preview area 4002 does not change even if content 4003 is enlarged by a zoom operation or reduced by a zoom operation. For example, even if the size of content 4003 is larger than preview area 4002 due to enlargement, part of content 4003 will not be displayed (cut off). Also, for example, if the size of content 4003 is smaller than preview area 4002 due to reduction, or if the aspect ratios of preview area 4002 and content 4003 are different, an area will be generated in preview area 4002 where content 4003 does not exist, but this area will be displayed with a background color of a fixed RGB value.
[0040] Content 4003 is displayed inside preview area 4002, and is edited in areas 4008 to 4012 and area 4013. In Fig. 3, a poster about the opening of a store is displayed as content.
[0041] Objects 4004, 4005, 4006, and 4007 are objects placed within the content 4003. The objects 4004 and 4007 are text objects, and the graphic object 4005 is a graphic object held in advance by the content generation application 16.
[0042] The text addition area 4008 is an area for adding a text object in the content 4003. When the text addition area 4008 is selected, a screen for inputting a text object is displayed, and the user can input text using the keyboard 7. After the input text is confirmed, the text object is added (placed) in the content 4003.
[0043] The graphic object addition area 4009 is an area for adding a graphic object to the content 4003. When the graphic object addition area 4009 is selected, the graphic objects in the host computer 1 are displayed, and the user can select one of the displayed graphic objects to add (place) the graphic object to the content 4003.
[0044] The output paper size selection area 4010 is an area for setting the paper size (output paper size) when the content 4003 is output. When the output paper size selection area 4010 is selected, a list of specifiable paper sizes is displayed. When one paper size is selected from the displayed list of paper sizes, the selected paper size is displayed as the output paper size. For example, FIG. 3 shows a state in which A4 size has been selected.
[0045] The destination printer selection area 4011 is an area for setting the printer 20 that will execute printing. When the destination printer selection area 4011 is selected, a list of available printers 20 is displayed. When one printer 20 is selected from the displayed list of printers 20, the selected printer 20 is displayed as the printer 20 that will receive the print instruction. For example, FIG. 3 shows a state in which printer A has been selected.
[0046] The print area 4012 is an area for starting printing. When the print area 4012 is selected, the content generation application 16 issues a print instruction to the printer 20 specified in the output destination printer selection area 4011 to print the content 4003 on the paper size selected in the print area 4012.
[0047] The preview display shrink / enlarge control 4013 is an area for enlarging or reducing the content 4003, and the content 4003 is enlarged or reduced in response to a user operation on the preview display shrink / enlarge control 4013. Note that the magnification rate can be adjusted between 0% and 100%, and the magnification rate is 0% when the entire content 4003 is displayed, and the content 4003 can be enlarged up to a magnification rate of 100% by a magnification operation.
[0048] Here, the user creates content 4003 based on pre-designed template data held by the template management unit 205. If an editing operation is performed on the content 4003 during the process of creating the content 4003, the content management unit 206 displays the content 4003 reflecting the editing contents. For example, editing operations can be performed on the content 4003 to add or change text objects, graphic objects, images, and the like.
[0049] However, when editing an area showing an end of content 4003 (hereinafter referred to as a content end area), if the color of the end of content 4003 (hereinafter referred to as content end color) is similar to the color of the background (preview area 4002) in which content 4003 is placed (hereinafter referred to as background color), the visibility of the end of content 4003 may be low, making it difficult to distinguish the boundary between content 4003 and the background. This reduces the usability of editing operations on content 4003. Furthermore, when edited content 4003 is printed, the print result may not be what the user desires.
[0050] A common method is used to determine whether visibility is low or not. For example, the "Techniques For Accessibility Evaluation And Repair Tools" published by W3C is used. This method converts the R (red), G (green), and B (blue) values, which are one way of expressing color, into HSV values, and determines that visibility is low if the difference in value between at least one of the elements of the HSV value is equal to or less than a predetermined threshold (or is lower than the predetermined threshold). The HSV value is a value that represents the color space, where H is the hue that represents the color tone, S is the saturation / chroma that represents the vividness of the color, and V is the value / brightness that represents the brightness of the color. The predetermined threshold may be different for each element of the HSV value, or it may be the same.
[0051] In other words, more specifically, determining whether visibility is low or not is determining whether the difference in value between at least one of the HSV value elements of the content edge color and the background color is equal to or less than a predetermined threshold value.
[0052] For example, the RGB value of the color of the edge area of the content 4003 in FIG. 3 other than the text object and the graphic object is RGB(255,255,235). On the other hand, the RGB value of the color of the preview area 4002, which is the default background color, is RGB(254,252,244). When each is converted to an HSV value, the HSV value of the color of the content edge area is HSV(60,7,100), and the HSV value of the color of the preview area 4002 is HSV(48,4,100). Note that the RGB value of the default background color, RGB(254,252,244), is a fixed value. Therefore, for example, if the predetermined threshold value for determining that the visibility is low is 20, the content edge area in FIG. 3 is determined to have low visibility because the difference between the HSV of the content edge area and the HSV of the default background color is equal to or less than the predetermined threshold value. In addition, rather than determining that visibility is low when the difference in value between at least one of the HSV value elements is below a predetermined threshold, it may be determined that visibility is low when the difference in value between all of the elements is below a predetermined threshold.
[0053] In addition, in order to make the boundary between the content 4003 and the background easier to see, it is possible to edit the content edge area to a color other than the default background color; however, in this case, it is unlikely that the user will be able to create the content 4003 they desire.
[0054] Therefore, in this embodiment, when the content generation application 16 determines that the visibility of the content end region is low, it changes the background color from the default background color to a background color that increases the visibility of the content end region. In other words, it changes the background color so that the difference between the information on the background color and the information on the content end color is greater than a predetermined threshold (or is equal to or greater than a predetermined threshold). More specifically, it changes the background color so that at least one of the differences between the values on the hue, saturation, and brightness of the content end region and the values on the hue, saturation, and brightness of the background color is greater than a predetermined threshold. This reduces the possibility that the boundary between the content 4003 and the background is difficult to distinguish due to the low visibility of the content end region, and improves the usability of the editing operation on the content 4003. It also reduces the possibility that the print result when the edited content 4003 is printed will not be the print result that the user desires. Furthermore, by changing the background color instead of the color of the end of the content 4003, it is possible to increase the possibility that the content 4003 desired by the user can be created.
[0055] Next, the background color changing process in the content generating application 16 will be described.
[0056] 4 is a flow chart showing background color change processing in the content generation application 16 according to the first embodiment. Note that "S" in the figure represents a step, and will be abbreviated in the following description.
[0057] The content generation application 16 is started by the user, and the process of this flowchart is started when the preview screen 4001 is displayed in response to an instruction to display the preview screen 4001.
[0058] In S3001, the content generation application 16 determines the color of the edge of the content. The process of S3001 will be specifically described with reference to Fig. 5. Fig. 5 is a diagram showing a content edge region according to the first embodiment.
[0059] In FIG. 5, the edge area 5001 of the content generating application 16 is an area extending inward by a predetermined length from each of the vertical and horizontal sides that are the border between the preview area 4002 and the content 4003. In the example of FIG. 5, the edge area 5001 of the short side of the border is an area extending inward by a predetermined length (vertical width 5002) from the short side of the content 4003 in the vertical direction. The edge area 5001 of the long side of the border is an area extending inward by a predetermined length (horizontal width 5003) from the long side of the border in the horizontal direction. In this embodiment, for an A4 paper size, the content edge area 5001 has a vertical width 5002 and a horizontal width 5003 of 5 mm, but the width of the edge area is not limited to 5 mm and may be any predetermined length. Also, the vertical width 5002 and the horizontal width 5003 may have different lengths.
[0060] In the process of determining the content edge color, the distribution of each pixel in the content edge region 5001 is obtained. For example, if no text object or graphic object is arranged in the content edge region 5001, the color distribution of the content edge region 5001 is 100% RGB (255, 255, 255) (white) pixels. On the other hand, as in the example of FIG. 5, if the content edge region 5001 includes a text object or a graphic object, the color distribution of the content edge region 5001 is not 100% RGB (255, 255, 255) pixels. This is because pixels with RGB values different from the RGB values of the region where no object is arranged are included by the area of the text object or graphic object. In this embodiment, the color of the pixel that is most frequently used is determined as the content edge color. For example, in FIG. 5, if the region where no object is arranged in the content 4003 is white, the region where the text object or graphic object is arranged is determined to be smaller than the region where no object is arranged in the content 4003, and therefore the content edge color is determined to be white. Note that the method of determining the content edge color is not limited. When a text object or a graphic object is included in the edge region 5001, the content edge color may be determined by mixing the pixel colors of the areas in which each object is placed and the pixel colors of the areas in which no object is placed in the content edge region 5001 in a ratio according to the size of each area.
[0061] In this embodiment, the content edge color is RGB(255, 255, 235) as shown in FIG.
[0062] Also, if the editing operation performed by the user on the content 4003 is an operation that affects the content edge region 5001, the content edge color is changed as needed. That is, the editing operation on the content 4003 is acquired and stored, and the content edge color is determined based on the operation that affects the content edge region 5001, and the process of displaying is repeated. For example, as an operation that affects the content edge region 5001, an operation in which an object having an RGB value that is significantly different from the RGB value of the region in which no object is placed is placed in an area in the content edge region 5001 in which no object is placed is considered as an operation that affects the content edge region 5001. If the object placed by this operation occupies a large area in the content edge region 5001, the content edge color is determined to be the color of the RGB value of the placed object. It is not essential to store the editing operation on the content 4003, and to repeat the process of determining the content edge color based on the operation that affects the content edge region 5001 and displaying it. That is, a configuration in which a determination is made as to whether or not visibility is low based on the edge color of the content 4003 when the preview region 4002 is first displayed and the default background color, and the background color is determined.
[0063] In S3002, the content generation application 16 compares the content edge color determined in S3001 with the default background color to determine whether the visibility of the edge of the content 4003 is low. Specifically, the method of determining whether the visibility is low or not is used. If the content generation application 16 determines that the visibility is low, the process proceeds to S3003. If the content generation application 16 determines that the visibility is not low, the content generation application 16 ends the process of this flowchart assuming that the boundary between the content 4003 and the preview area 4002 is sufficiently recognizable. Note that if the content edge color and the color of the area in the content other than the content edge area are the same color, the color of the area in the content other than the content edge area may be used instead of the content edge color in this determination process.
[0064] In S3003, the content generation application 16 determines a background color (color of the preview area 4002). That is, the content generation application 16 determines a background color having an RGB value different from the default background color so as to increase the visibility of the content end color and the background color. As described above, the background color is determined to have low visibility when the difference between the HSV of the content end color and the HSV of the color of the preview area 4002 is equal to or less than a predetermined threshold. Therefore, a color having an HSV value such that the difference between the HSV of the content end color and the HSV of the color of the preview area 4002 is greater than the predetermined threshold is determined as the background color. Note that, among the elements (H, S, V) for which the difference between the HSV of the content end color and the HSV of the color of the preview area 4002 is determined to be equal to or less than the predetermined threshold, a color having an HSV value such that at least one element is greater than the predetermined threshold is determined as the background color. However, a color having an HSV value in which all values of the difference of the values of each element (H, S, V) in the HSV value of the content edge color and the HSV value of the color of the preview area 4002 are greater than a predetermined threshold may be determined as the background color. Furthermore, when determining a color having an HSV value in which at least one element of each element (H, S, V) in which the difference of the HSV value of the content edge color and the HSV value of the color of the preview area 4002 is determined to be equal to or less than a predetermined threshold, a priority order may be set for the determination of each element. For example, the following determination method is possible. First, the content generation application 16 determines whether or not the difference of the value of V (luminance / brightness) is equal to or less than a predetermined threshold, and if it is determined to be equal to or less than the predetermined threshold, it determines whether or not the difference of the value of H (hue) is equal to or less than a predetermined threshold. Then, if it is determined that the difference of the value of H (hue) is equal to or less than a predetermined threshold (if it is determined that the difference of each value of V and H is equal to or less than a predetermined threshold), the content generation application 16 determines a color having a value in which the difference of the value of H (hue) is greater than a predetermined threshold as the background color.Furthermore, if it is determined that the difference in the H (hue) values is equal to or greater than a predetermined threshold (if it is determined that the difference in the V values is equal to or less than a predetermined threshold and the difference in the H values is equal to or greater than a predetermined threshold), the content generation application 16 determines, as the background color, a color having a value that causes the difference in the S (saturation) values to be greater than a predetermined threshold. Note that the priority order of each element is not limited to this, and may be different.
[0065] A specific description will be given with reference to Fig. 6. Fig. 6 is a diagram showing an example of the screen configuration of the content editing application when background color change processing is executed. Note that the components of the preview screen 4001 are the same as those in Fig. 3.
[0066] 6(a) and (b) show the preview area 4002 when the background color is changed in the background color change process, and the RGB values and HSV values of the content edge color, the color before the background color is changed, and the color after the background color is changed.
[0067] In FIG. 6(a), the color of preview region 4002 has been changed from RGB(254,252,244)(HSV(48,4,100)) to RGB(254,252,244)(HSV(48,28,100). That is, in S3003, content generation application 16 determines a color obtained by increasing the S (saturation) value for the color of preview region 4002 by 24 as the changed background color. In this way, the saturation of preview region 4002 is made different from the saturation of content 4003, thereby improving the visibility of the boundary between content 4003 and preview region 4002.
[0068] On the other hand, in FIG. 6(b), the color of preview region 4002 has been changed from RGB(254,252,244)(HSV(48,4,100)) to RGB(254,252,244)(HSV(4190,4,100). That is, in S3003, content generation application 16 determines a color obtained by increasing the H (hue) value for the color of preview region 4002 by 142 as the changed background color. In this way, the hue of preview region 4002 is made different from the hue of content 4003, thereby improving the visibility of the boundary between content 4003 and preview region 4002. Note that preview region 4002 has a diagonal line pattern to represent the difference in hue, but this is an expression used in this specification, and in terms of hue, the hue of preview region 4002 has changed from yellow to blue.
[0069] In S3005, content generation application 16 sets the background color determined in S3004 in preview area 4002 on the operation screen of content generation application 16, and ends the processing of this flowchart. As a result, preview area 4002 to which the set background color has been applied is displayed on preview screen 4001.
[0070] Here, Figures 6(c) to (f) show preview area 4002 as examples of when the flowchart of the background color change process in Figure 4 is executed. Figures 6(c) and (d) show examples of when the background color change process determines that visibility is low and changes the background color, and Figures 6(e) and (f) show examples of when the background color change process determines that visibility is not low and does not change the background color.
[0071] 6(c) is an example of a large graphic object of a color different from the background color in the center of content 4003. Because the graphic object 6001 in the center stands out, the color of the graphic object 6001 gives a strong impression of the color of the entire content, but if you look at the edge areas of content 4003, you will see that they are a similar color to the preview area 4002. Therefore, the background color is changed to improve visibility.
[0072] 6(d) is an example of a case where small dots of a color different from the background color are arranged all over content 4003. Because the dots arranged all over the content stand out, the color of the dot pattern gives a strong impression of the color of the entire content, but if you look at the edge areas of content 4003, you will see that they are a similar color to preview area 4002. Therefore, the background color is changed to improve visibility.
[0073] 6(e) shows an example in which the entire content 4003 is a color different from the background color. In this case, the color of the edge of the content 4003 is different from the background color, and the visibility of the boundary is high, so the background color is not changed.
[0074] 6(f) is an example of a case where a bar-shaped object 6008 of a color different from the background color is arranged over the entire content 4003. In this case, the bar-shaped object 6008 of a color different from the background color occupies a large area of the edge region of the content 4003, and therefore the visibility of the boundary between the content 4003 and the background is high, so the background color is not changed.
[0075] As described above, in this embodiment, when it is determined that the visibility of the content edge region is low, the content generation application 16 changes the default background color to a background color that increases the visibility of the content edge region. This reduces the possibility that the boundary between the content 4003 and the background is difficult to distinguish due to the low visibility of the content edge region, and improves the usability of the editing operation for the content 4003. In addition, it is possible to reduce the possibility that the print result when the edited content 4003 is printed will not be the print result desired by the user. Furthermore, by changing the background color instead of the color of the edge of the content 4003, it is possible to increase the possibility that the content 4003 desired by the user can be created.
[0076] [Second embodiment] In the first embodiment, a process has been described in which, when it is determined that the visibility of the content end region is low, the default background color is changed to a background color that increases the visibility of the content end region.
[0077] In this embodiment, when it is determined that the visibility of the content end region is low and a specific operation is performed among editing operations on the content, a process is described in which the default background color is changed to a background color that increases the visibility of the content end region.
[0078] The predetermined operation is, for example, a zoom-in operation for zooming in on the content 4003. The zoom-in operation may be an operation of the zoom-in / zoom-out control 4013 or a pinch-out operation on the content 4003. The user may zoom in on the content 4001 for the following reasons. For example, the user may check the details of the content 4003, such as whether the text in the content 4001 is arranged at the correct position and angle, whether a part of the text overlaps with other objects, and whether the text or objects are arranged within the content 4003 without protruding from the content 4003. Therefore, when a zoom-in operation is performed, a process for improving the visibility of the content 4003 (a background color change process) is performed, thereby improving usability for checking the details. On the other hand, the purpose of displaying the content 4003 in its entirety (displayed at a zoom ratio of 0%), as in the case of the content 4003 in FIG. 3, may be to check the outline of the content 4003, not to check the details. Therefore, when the content 4003 is displayed in its entirety by a zoom-in operation from an enlarged state, the changed background color is returned to the default background color. As a result, for example, by displaying the content 4003 on a default background with a white background color as described above, the print result can be easily imagined, and usability for checking the outline of the content 4003 can be improved. Note that the background color is determined so that the difference between the HSV value of the content edge color and the HSV value of the background color becomes larger as the magnification ratio increases from 0% at which the content 4003 is displayed in its entirety. In other words, when a magnification operation is performed in stages, the difference between the content edge color and the background color is displayed to increase in stages. Note that a reduction operation may be an operation of the reduce / enlarge control 4013 or a pinch-in operation on the content 4003.
[0079] Moreover, the predetermined operation is, for example, an editing operation for adding / editing an object. The object is, for example, a text object or a graphic object, and the method of adding is, as described above, an operation on the text adding area 4008 and the graphic object adding area 4009. Editing is, for example, inputting or deleting characters from a text object, changing the character color or decoration, moving, rotating, or resizing an object. When the user adds or edits an object, it is considered that the user performs the editing operation while checking details such as whether the object is placed at an appropriate position in the content 4003 (for example, whether the object is contained within the content 4003). Therefore, when an editing operation for adding / editing an object is performed, usability for checking details can be improved by executing a process for improving the visibility of the content 4003 (a background color change process).
[0080] In the following description, configurations and processes not mentioned are the same as those in the first embodiment, and therefore descriptions thereof will be omitted.
[0081] 7 is a flow chart showing background color change processing in the content generation application 16 according to the second embodiment. Note that "S" in the figure represents a step, and will be abbreviated in the following description.
[0082] The process of this flowchart is started when the content generation application 16 is started by the user and the preview screen 4001 is displayed in response to an instruction to display the preview screen 4001. Note that processes not mentioned in the explanation are the same as those in the flowchart shown in FIG.
[0083] In S3005, the content generation application 16 acquires predetermined operation information for the content 4003. The predetermined operation information is, for example, enlargement operation information for enlarging the content 4003 or reduction operation information for reducing the content 4003 (enlargement / reduction operation information), or editing operation information for adding / editing an object.
[0084] In S3006, the content generation application 16 judges whether or not an operation has been performed on the content 4003. Specifically, it judges whether or not a user operation has been performed on the areas 4008, 4009, and 4013 in Fig. 3. If the result of the judgment in S3006 is YES, the content generation application 16 proceeds to S3003, and if the result of the judgment in S3006 is NO, the content generation application 16 ends the processing of this flowchart.
[0085] In S3004, content generation application 16 determines a background color (the color of preview area 4002). That is, content generation application 16 determines a background color having an RGB value different from the default background color so as to increase the visibility of the content end color and the background color. As described above, the background color is determined to have low visibility when the difference between the HSV of the content end color and the HSV of the color of preview area 4002 is equal to or less than a predetermined threshold, so the content generation application 16 determines a color having an HSV value such that the difference between the HSV of the content end color and the HSV of the color of preview area 4002 is greater than a predetermined threshold as the background color.
[0086] Here, a case where enlargement operation information is acquired as operation information in S3005 will be described. Fig. 8 is a diagram showing an example of the configuration of a preview screen 4001 displayed when an enlargement operation is executed. The table in the figure shows the RGB values (HSV values) of the background color when the background color is changed based on a predetermined operation.
[0087] FIG. 8(a) shows a preview area 4002 in which content 4003 is displayed at a magnification of 150%.
[0088] In FIG. 8(a), the background color value in the case where no enlargement operation is performed in FIG. 3 has been changed from RGB(254,252,244) (HSV(48,4,100)) to RGB(255,240,183) (HSV(48,28,100). That is, in S3003, content generation application 16 determines a color obtained by increasing the S (saturation) value for the color of preview region 4002 by 24 as the changed background color.
[0089] FIG. 8(b) is a diagram showing a preview area 4002 in which content 4003 is displayed at a magnification of 200%.
[0090] In FIG. 8(b), the background color value in the case where no enlargement operation is performed in FIG. 3 has been changed from RGB(254,252,244) (HSV(48,4,100)) to RGB(255,228,122) (HSV(48,52,100). That is, in S3003, content generation application 16 determines a color obtained by increasing the S (saturation) value for the color of preview region 4002 by 48 as the changed background color.
[0091] Therefore, the background color is determined and displayed so that the difference in HSV value between the content edge color and the background color is greater when a magnification operation is performed at 150% magnification than when no magnification operation is performed (magnification rate of 0%). Furthermore, the background color is determined and displayed so that the difference in HSV value between the content edge color and the background color is greater when a magnification operation is performed at 200% magnification than when a magnification operation is performed at 150% magnification. This shows that visibility improves as the magnification rate increases.
[0092] Further, for example, a case will be described where an editing operation for adding / editing an object is acquired as operation information in S3005. Fig. 9 is a diagram showing preview area 4002 displayed when an editing operation for adding / editing an object is executed. The upper diagram in Fig. 9 is a diagram showing a state where a text object 8001 is placed in content 4003. The lower diagram in Fig. 9 is a diagram showing a state where a graphic object 8002 is placed in content 4003 as a result of pressing a graphic object addition area 4009 with a pointing device. The table in the diagram shows the RGB values (HSV values) of the background color when the background color is changed based on a predetermined operation. The background color value in the case where no enlargement operation is performed in FIG. 3 is changed from RGB(254,252,244) (HSV(48,4,100)) to RGB(255,228,122) (HSV(48,52,100). That is, in S3003, content generation application 16 determines a color obtained by increasing the S (saturation) value for the color of preview region 4002 by 48 as the changed background color. Note that, although an example has been shown in which the background color is not changed depending on the type of a predetermined operation, the background color may also be changed depending on the type of operation.
[0093] Therefore, the background color is determined and displayed so that the difference in HSV value between the content edge color and the background color is greater when an editing operation has been performed than when an editing operation has not been performed, which shows that visibility is improved based on the fact that an editing operation has been performed.
[0094] The background color is changed based on pressing the area for adding an object, but it may also be changed based on any operation for editing an object (entering or deleting characters from a text object, changing the character color or decoration, moving, rotating, or resizing an object).
[0095] (Other embodiments) The above-mentioned embodiment can also be realized by executing the following process. That is, software (programs) that realize the functions of the above-mentioned embodiment are supplied to a system or device via a network or various storage media, and a computer (CPU, MPU, etc.) of the system or device reads and executes the program. The program may be executed by one computer, or may be executed by multiple computers in cooperation with each other. It is not necessary to realize all of the above-mentioned processes by software, and some or all of the processes may be realized by hardware such as ASIC. The CPU is also not limited to one that performs all processes by one CPU, and multiple CPUs may perform processes in cooperation with each other as appropriate.
[0096] In addition, the functions of the above-mentioned embodiments are not only realized by a computer reading and executing the program code, but also include cases where an OS running on a computer performs part or all of the actual processing based on the instructions of the program code, and the functions of the above-mentioned embodiments are realized by the processing.
[0097] The disclosure of this embodiment includes the following configuration, method, and program. (Program 1) An application program capable of editing content, The computer of the information processing device A change step of changing the first color of the predetermined area to a second color different from the first color based on information on the first color of the predetermined area including the content and information on the color of the content. A program characterized by executing the above. (Program 2) The color information possessed by the content is information regarding the color of the end area of the content, and the program described in Program 1 is characterized in that the computer is further caused to execute a first determination step of determining the color information regarding the end area of the content. (Program 3) The program described in Program 2 further executes a determination step of determining whether visibility is low based on information about the color of the end area of the content and information about the first color, and the change step is characterized in that if the visibility is determined to be low, the first color is changed to the second color based on information about the color of the end area of the content and information about the first color. (Program 4) The program described in program 3, characterized in that the visibility is determined to be low when the difference between information regarding the color of the edge area of the content and information regarding the first color is determined to be below a predetermined threshold. (Program 5) The program described in program 3, characterized in that the visibility is determined to be low when at least one of the differences between the values related to hue, saturation, and brightness of the edge area of the content and the values related to hue, saturation, and brightness of the specified area is below a specified threshold. (Program 6) 6. The program according to any one of programs 1 to 5, further causing the computer to execute a second determination step of determining the second color. (Program 7) The program according to program 6, further causing the computer to execute a setting step of setting the second color to the color of the specified area. (Program 8) The program described in program 7, further causing the computer to execute a display step of displaying the specified area including the content and having the second color set on a display unit of the information processing device. (Program 9) A program described in any one of programs 1 to 8, characterized in that the change step changes the first color to the second color so that the difference between information regarding the color of the end area of the content and information regarding the first color is greater than a predetermined threshold value. (Program 10) A program described in any one of Programs 1 to 9, characterized in that the change step changes the first color to the second color so that at least one of the differences between the values of hue, saturation, and brightness of the end area of the content and the values of hue, saturation, and brightness of the specified area is greater than a specified threshold value. (Program 11) 11. The program according to any one of claims 1 to 10, wherein the change step changes the first color to the second color based on an editing operation on the content. (Program 12) The program described in program 11, wherein the editing operation is an operation for enlarging the content. (Program 13) The program described in program 12, wherein the operation for enlarging the end of the content is a pinch-out operation. (Program 14) 14. The program according to any one of programs 11 to 13, wherein the editing operation is an operation for reducing an edge of the content. (Program 15) The program described in program 14, wherein the operation for enlarging the end of the content is a pinch-in operation. (Program 16) 16. The program according to any one of programs 11 to 15, wherein the editing operation is an operation of adding an object to the content. (Program 17) The program according to any one of programs 11 to 16, wherein the editing operation is an operation of placing an object in an area at an end of the content. (Program 18) The program described in program 16 or 17, wherein the object is a text box. (Program 19) 18. The program according to claim 16 or 17, wherein the object is a graphic object. (Program 20) 20. The program according to any one of claims 1 to 19, further causing the computer to execute a print instruction for causing a printer to print the content. (Method 1) A control method for enabling editing of content, comprising: A change step of changing the first color of the predetermined area to a second color different from the first color based on information on the first color of the predetermined area including the content and information on the color of the content. A control method comprising the steps of: (Configuration 1) A configuration in which content can be edited, A change means for changing a first color of a predetermined area including the content to a second color different from the first color based on information on a first color of the predetermined area including the content and information on a color of the content. A configuration comprising: [Explanation of symbols]
[0098] 1. Host Computer 2 CPU 16 Applications 20 Printers
Claims
1. An application program capable of editing content, The computer of the information processing device a changing step of changing the first color of the predetermined area including the content to a second color different from the first color based on information about the first color of the predetermined area including the content and information about the color of an edge area of the content; A program characterized by executing the following.
2. The program described in Claim 1, characterized in that the computer further executes a first determination step of determining the color of an edge area of the content.
3. The program described in claim 2, further comprising a determination step of determining whether visibility is low based on information about the color of the edge area of the content and information about the first color, and if it is determined that the visibility is low, the change step changes the first color to the second color based on information about the color of the edge area of the content and information about the first color.
4. The program described in claim 3, characterized in that the visibility is determined to be low when it is determined that the difference between information regarding the color of the edge area of the content and information regarding the first color is less than a predetermined threshold.
5. The program described in claim 3, characterized in that the visibility is determined to be low when at least one of the differences between the values related to hue, saturation, and brightness of the edge area of the content and the values related to hue, saturation, and brightness of the specified area is below a specified threshold.
6. 2. The program according to claim 1, further causing the computer to execute a second determination step of determining the second color.
7. 7. The program according to claim 6, further causing the computer to execute a setting step of setting the second color to the color of the predetermined area.
8. 8. The program according to claim 7, further causing the computer to execute a display step of displaying the predetermined area including the content and having the second color set on a display unit of the information processing device.
9. The program according to claim 1, characterized in that the change step changes the first color to the second color so that the difference between information regarding the color of the edge area of the content and information regarding the first color is greater than a predetermined threshold value.
10. The program described in claim 1, characterized in that the change step changes the first color to the second color so that at least one of the differences between the values of hue, saturation, and brightness of the edge area of the content and the values of hue, saturation, and brightness of the specified area is greater than a specified threshold.
11. 2. The program according to claim 1, wherein the changing step changes the first color to the second color based on an editing operation on the content.
12. 12. The program according to claim 11, wherein the editing operation is an operation for enlarging the content.
13. 13. The program according to claim 12, wherein the operation for enlarging the edge of the content is a pinch-out operation.
14. 12. The program according to claim 11, wherein the editing operation is an operation for reducing an edge of the content.
15. 15. The program according to claim 14, wherein the operation for enlarging the edge of the content is a pinch-in operation.
16. 12. The program according to claim 11, wherein the editing operation is an operation of adding an object to the content.
17. 12. The program according to claim 11, wherein the editing operation is an operation of placing an object in an area at an end of the content.
18. 18. The program according to claim 16, wherein the object is a text object.
19. 18. The program according to claim 16, wherein the object is a graphic object.
20. 2. The program according to claim 1, further causing the computer to execute a print instruction to cause a printer to print the content.
21. An information processing device capable of editing content, a change means for changing the first color of the predetermined area including the content to a second color different from the first color based on information about the first color of the predetermined area including the content and information about the color of an edge area of the content; An information processing device comprising:
22. A control method capable of editing content, comprising: a changing step of changing the first color of the predetermined area including the content to a second color different from the first color based on information about the first color of the predetermined area including the content and information about the color of an edge area of the content; A control method comprising: