This application claims priority to Japanese Patent Application No. 2010-177339, filed on Aug. 6, 2010, the contents of which are hereby incorporated by reference into the present application.
The technique taught in the present specification relates to a controlling device mounted on a portable type terminal device such as a mobile phone, PDA (Personal Digital Assistant), portable music player, notebook PC, tablet PC, etc.
A mobile phone provided with a main body and a display capable of rotating relative to the main body is known. In a state where the display is present in a vertical position, this mobile phone shows an image such that a left-right direction of the image is along a short side of the display and, in a state where the display is present in a horizontal position, the mobile phone shows the image such that the left-right direction of the image is along a long side of the display.
In the prior art, causing a printer to print the image shown in the display has not been taken into consideration. In the present specification, a technique is taught that can give a user an appropriate printout in a case where printing of an image is instructed on a portable type terminal device in which the direction of the image relative to the display can be switched.
One technique disclosed in the present application is a controlling device mounted on a portable type terminal device. The portable type terminal device may comprise a display and a display controlling unit. The display may have a rectangular shape defined by a first length along a first direction and a second length along a second direction. The second length may be different from the first length. The second direction may be perpendicular to the first direction. The display controlling unit may be configured to switch between a first state and a second state. The first state may be a state in which a specific image represented by specific data is shown in the display such that an up-down direction of the specific image is along the first direction and a left-right direction of the specific image is along the second direction. The second state may be a state in which the specific image is shown in the display such that the up-down direction of the specific image is along the second direction and the left-right direction of the specific image is along the first direction.
The controlling device may comprise a print data creation unit and a sending unit. The print data creation unit may be configured to create print data by utilizing the specific data in a case where a print of the specific image is instructed. The print data may have a format that a printer is capable of interpreting. The sending unit may be configured to send the print data to the printer. In both of a first case where the print of the specific image is instructed in the first state and a second case where the print of the specific image is instructed in the second state, the print data creation unit may create a first type of the print data for causing the printer to perform a first type of a print. In the first type of the print, the left-right direction of the specific image may be along a short side of a print medium, and an entire length of the specific image in the left-right direction may correspond to the short side of the print medium.
Furthermore, a controlling method, a computer program and a non-transitory computer readable storage medium that stores the computer program, all for realizing the function of the above controlling device, are also novel and have utility. Further, a portable type terminal device comprising the above controlling device is also novel and has utility.
The first embodiment will be described with reference to the figures. As shown in
The mobile terminal device 10 is a terminal device that can easily be carried by a user (i.e., a portable type terminal device). The mobile terminal device 10 is, e.g., a mobile phone, PDA, portable music player, notebook PC, tablet PC, etc. The mobile terminal device 10 comprises a display 12, a communication interface (communication I/F) 16 and a controlling unit 20. The units 12, 16, 20 are connected to a bus line 18. The communication I/F 16 is an I/F for the mobile terminal device 10 to perform wireless communication.
The display 12 is a display for showing various types of information. The exterior of the mobile terminal device 10 is shown in
The controlling unit 20 comprises a CPU 22 and a program storage area 24. The CPU 22 performs various processes in accordance with programs 26, 28 stored in the program storage area 24. The function of a display controlling unit 30 is realized by the CPU 22 performing processes in accordance with the OS program 26. Further, the functions of a print data creation unit 40, a sending unit 42, and a display data creation unit 44 are realized by the CPU 22 performing processes in accordance with the print application 28. Furthermore, the OS program 26 is pre-installed in the mobile terminal device 10 at the shipment stage of the mobile terminal device 10. Further, the print application 28 is installed in the mobile terminal device 10 by, e.g., being downloaded from a server supplied by a vendor or a manufacturer of the printer 60. Furthermore, instead of the present embodiment, the print application 28 may be pre-installed in the mobile terminal device 10 at the shipment stage of the mobile terminal device 10, or may be installed in the mobile terminal device 10 from a storage medium (media) such as a CD, etc.
Next, the contents of processes performed in accordance with the OS program 26 will be described with reference to
By operating the display 12, the user can instruct the mobile terminal device 10 to access the Web server 72. In this case, in S2, the display controlling unit 30 (see
Next, in S4, the display controlling unit 30 determines the posture of the mobile terminal device 10 based on a value detected by a posture sensor (e.g., an acceleration sensor) that is not shown and is housed in the mobile terminal device 10. Specifically, the display controlling unit 30 determines whether the mobile terminal device 10 is vertically oriented (the state of the upper figure in
In a case of YES in S4 (the case of being closer to the vertical orientation), in S6 the display controlling unit 30 creates RGB image data for vertical orientation in BMP format using the HTML format Web data obtained in S2. In Web data, the up-down direction and left-right direction of an image (the letters “A” to “L” in the example of
In S6, the display controlling unit 30 further supplies the image data for vertical orientation to the display 12. Consequently, as shown in the upper figure of
In a case of NO in S4 (the case of being closer to the horizontal orientation), in S8 the display controlling unit 30 creates BMP format RGB image data for horizontal orientation using the HTML format Web data obtained in S2. In S8, the display controlling unit 30 creates the image data for horizontal orientation such that the up-down direction of the image represented by the Web data is along the short side of the display 12, and the left-right direction of the image is along the long side of the display 12. In S8, the display controlling unit 30 further supplies the image data for horizontal orientation to the display 12. Consequently, as shown in the lower figure of
Furthermore, in the present embodiment, the image data for horizontal orientation is created such that the entire length in the left-right direction of the image 90 shown in the display 12 (the length from the left edge of “A” to the right edge of “C”) is approximately equal to the length of the long side of the display 12. Naturally, the long side of the display 12 is longer than the short side of the display 12. Consequently, the size of a partial image (e.g., the single letter “A”) that constitutes the image 90 represented by the image data for horizontal orientation is greater than the size of the same partial image that constitutes the image 80 represented by the image data for vertical orientation. Therefore, as shown in the upper figure of
In S9, the display controlling unit 30 determines whether an operation has been performed to end the displaying of the images 80, 90 represented by the Web data in the display 12. In a case of NO here, the display controlling unit 30 returns to S4, and monitors whether the posture of the mobile terminal device 10 has changed. For example, in a case where the posture of the mobile terminal device 10 has changed from the vertical to horizontal orientation, the display controlling unit 30 determines NO in S4, creates the image data for horizontal orientation in S8, and supplies that image data to the display 12. Further, e.g., in a case where the posture of the mobile terminal device 10 has changed from horizontal to vertical orientation, the display controlling unit 30 determines YES in S4, creates the image data for vertical orientation in S6, and supplies that image data to the display 12. That is, the mobile terminal device 10 switches the direction of the images 80, 90 relative to the display 12 in accordance with the posture of the mobile terminal device 10. Furthermore, in a case of YES in S9, the displaying of the images 80, 90 represented by the Web data ends.
Next, the contents of processes performed in accordance with the print application 28 will be described with reference to
First, in S10, the display data creation unit 44 (see
The contents of the process S44 will be described more specifically. Since the print condition has not yet been selected by the user at the stage of S44, the display data creation unit 44 creates the preview image data using a print condition that was determined in advance (called “predetermined print condition” below). In the present embodiment, the predetermined print condition is color print using A4 size print medium. Consequently, the display data creation unit 44 creates the preview image data such that the aspect ratio of the border 102 in the preview image 100 is 1: square root of 2, which is the aspect ratio of A4 size. Further, the display data creation unit 44 creates the preview image data such that the image 104 in the preview image 100 is a color image. Furthermore, in the present embodiment, a predetermined margin size is adopted as the predetermined print condition. The margin size of both edges of the short side of the print medium is 1/10 smaller than the length of the short side of the print medium. Consequently, the entire length of the image 104 in the left-right direction (the length from the left edge of “A” to the right edge of “C”) is approximately equal to the length of the short side of the border 102. Furthermore, in a variant embodiment, no margin may be adopted as the predetermined print condition. In this variant embodiment, the entire length of the image 104 in the left-right direction matches the length of the short side of the border 102. Furthermore, as with the margins in the short side direction, the margin size of both edges of the long side of the print medium is 1/10 smaller than the length of the long side of the print medium. Consequently, the entire length in the up-down direction of the image 104 (the length from the top edge of “A” to the bottom edge of “J”) is approximately equal to the length of the long side of the border 102.
In S44, further, the display data creation unit 44 creates the preview image data such that the left-right direction of the preview image 100 is along the short side of the display 12 and the up-down direction of the preview image 100 is along the long side of the display 12. Furthermore, the left-right direction of the preview image 100 corresponds to the left-right direction of the image 104 in the preview image 100 (i.e., the direction in which “A”, “B”, “C” are aligned), and the up-down direction of the preview image 100 corresponds to the up-down direction of the image 104 in the preview image 100 (i.e., the direction in which “A”, “D”, “G”, “J” are aligned). Further, in S44, the display data creation unit 44 creates the preview image data such that the entirety of the preview image 100 indicating the print result for one piece of print medium fits into the display 12. Furthermore, the display data creation unit 44 creates the preview image data such that the size of the entirety of the preview image 100 increases, as long as the entirety of the preview image 100 can fit into the display 12. When S44 ends, the preview image display process ends.
On the other hand, in a case where the mobile terminal device 10 is horizontally oriented, the display data creation unit 44 determines NO in S42, and proceeds to S46. In S46, the display data creation unit 44 creates preview image data for horizontal orientation that represents a preview image indicating the result of portrait print of the image 80 represented by the Web data (see
In S46, as in S44, the display data creation unit 44 creates the preview image data using the predetermined print condition. Consequently, the aspect ratio of the border 112 in the preview image 110 is 1: square root of 2, and the image 114 in the preview image 110 is a color image. In S46, further, the display data creation unit 44 creates the preview image data such that the left-right direction of the preview image 110 (i.e., the direction in which “A”, “B”, “C” are aligned) is along the long side of the display 12, and the up-down direction of the preview image 110 (i.e., the direction in which “A”, “D”, “G”, “J” are aligned) is along the short side of the display 12. Other points are the same as in S44. When S46 ends, the preview image display process ends.
As described above, in the present embodiment, since the preview image display process is performed, the user can check the print result before the images 80, 90 shown in the display 12 are actually printed. In particular, since the preview image 100, etc. is shown, the user can check the preview image 100, etc. well before setting the print condition (i.e., immediately after the print application 28 was initiated). Further, since the entirety of the preview image 100, etc. corresponding to one piece of print medium is shown so as to fit into the display 12, it is easy for the user to check the preview image 100, etc.
When the preview image display process ends, the process proceeds to S12 of
In S16, the controlling unit 20 asks the printer 60 for the print condition executable by the printer 60. Consequently, the controlling unit 20 obtains information indicating the print condition executable by the printer 60. Furthermore, the print condition executable by the printer 60 includes, e.g., size of print medium (A4 size, Letter size, etc.), type of print medium (normal paper, glossy paper etc.), print color (color print, monochrome print), capability of duplex print, etc.
Next, in S18, the controlling unit 20 displays the print condition executable by the printer 60 in the display 12 based on the information obtained in S16. By operating the display 12, the user can set (i.e., select) the desired print condition. In this case, the controlling unit 20 determines YES in S20, and proceeds to S22. Furthermore, in the present embodiment, the description below will continue using the case of “Letter size” being set as the size of the print medium, and “monochrome print” being set as the print color.
Next, the contents of the preview image renewal process of S22 will be described.
In the case where the mobile terminal device 10 is horizontally oriented, the display data creation unit 44 determines NO in S62, and proceeds to S66. Except for the point that the set print condition (i.e., monochrome print, Letter size) is used, the process S66 is the same as the process S46 of
In the present embodiment, as described above, since the preview image renewal process is performed, in a case e.g. where monochrome print has been set by the user, the preview image 200, etc. indicating the print result monochrome print is displayed. Further, in a case e.g. where the size of the print medium (e.g., Letter size) has been set by the user, the preview image 200, etc. corresponding to the aspect ratio of that size is displayed. The user can check the preview image 200, etc. indicating the print result that corresponds to his desired print condition.
When the preview image renewal process ends, the process proceeds to S24 of
Next, the contents of the print data creation process of S28 will be described.
The contents of the process S82 will be described in detail. The printer 60 is usually capable of interpreting JPEG format data. Consequently, in the present embodiment, the print data creation unit 40 creates RGB bitmap data using the Web data obtained in S2 of
Further, the print data creation unit 40 creates the print data for portrait print utilizing the set print condition (i.e., monochrome print, Letter size). That is, for the printer 60 to perform the monochrome print, the print data creation unit 40 creates bitmap data such that the RGB values of the pixels constituting the bitmap data are identical. Further, for the printer 60 to perform printing on a Letter size print medium, the print data creation unit 40 creates the bitmap data having a number of pixels corresponding to the length of the short side and the length of the long side of the Letter size print medium. Further, for the printer 60 to perform a portrait print of the image 80 represented by the Web data (see
For example, a configuration (called “comparative example mobile terminal device” below) is conceivable in which the printer 60 performs a portrait print in a case where the initiation of the print application 28 is instructed when the mobile terminal device 10 is in the vertically oriented state, and the printer 60 performs a landscape print (i.e., printing in which the left-right direction of the image of the print target is along the long side of the print medium) in a case where the initiation of the print application 28 is instructed when the mobile terminal device 10 is in the horizontally oriented state. In the comparative example mobile terminal device, the direction of the image relative to the print medium changes in accordance with the direction of the image relative to the display. Consequently, e.g., if the user instructs printing of a first image displayed when the comparative example mobile terminal device is in the vertically oriented state, and then instructs printing of a second image displayed when the comparative example mobile terminal device is in the horizontally oriented state, a first print medium (i.e., a portrait printout) can be obtained in which the left-right direction of the first image is along the short side, and a second print medium (i.e., a landscape printout) can be obtained in which the left-right direction of the second image is along the long side. For example, in a case where the first image is a top-level Web page (e.g., a top page), and the second image is a lower-level Web page linked from the top-level Web page, the direction of the top-level Web page relative to the first print medium differs from the direction of the lower-level Web page relative to the second print medium. That is, in the comparative example mobile terminal device, the direction of the image relative to the print medium is different in the first print medium and the second print medium, and the user obtains printouts which do not give him/her a standardized impression.
By contrast, in the mobile terminal device 10 of the present embodiment, the print medium 300 can be obtained in which the left-right direction of the image 80, etc. is along the short side, in both cases where the printing is instructed of the image 80 (see
The “Web data” obtained in S2 of
The description will focus on points differing from the first embodiment. In the present embodiment, there are two modes for causing the printer 60 to print using the print application 28. One of the modes (called “portrait print fix mode” below) is a mode for causing the printer 60 to print a portrait print regardless of the direction of the image relative to the display 12 (i.e., the posture of the mobile terminal device 10). The other of the modes (called “display dependent mode” below) is a mode for causing the printer 60 to print either the portrait print or the landscape print according to the direction of the image relative to the display 12 (i.e., the posture of the mobile terminal device 10). The user can select one mode out of the portrait print fix mode and the display dependent mode by operating (touching) the display 12. Information indicating the mode selected by the user is stored in a memory (not shown) in the controlling unit 20.
In the present embodiment, the contents of the preview image display process (
In S48, the display data creation unit 44 determines the posture of the mobile terminal device 10. In the case where the mobile terminal device 10 is vertically oriented, the display data creation unit 44 determines YES in S48, and proceeds to S44. In the case where the mobile terminal device 10 is horizontally oriented, the display data creation unit 44 determines NO in S48, and proceeds to S50. In S50, the display data creation unit 44 creates preview image data for horizontal orientation that represents a preview image indicating the result of landscape print of the image 90 represented by the Web data (see
In S50, as with S44, the display data creation unit 44 creates the preview image data using the predetermined print condition (color print using A4 print medium). Consequently, the aspect ratio of the border 122 in the preview image 120 is 1: square root of 2, and the image 124 in the preview image 120 is a color image. In S50, further, the display data creation unit 44 creates the preview image data such that the left-right direction of the preview image 120 (i.e., the direction in which “A”, “B”, “C” are aligned) is along the long side of the display 12, and the up-down direction of the preview image 120 (i.e., the direction in which “A”, “D” are aligned) is along the short side of the display 12. Furthermore, in the present embodiment, the predetermined margin size is adopted as the predetermined print condition. Consequently, the entire length of the image 124 in the left-right direction (the length from the left edge of “A” to the right edge of “C”) is approximately equal to the length of the long side of the border 122. Consequently, the entire length of the image 124 in the left-right direction in the preview image 120 is greater than the entire length of the image 104 in the left-right direction in the preview image 100 shown in S44. Consequently, the size of a partial image (e.g., the single letter “A”) that constitutes the image 124 in the preview image 120 is greater than the size of the same partial image that constitutes the image 104 in the preview image 100. Other points are the same as S44. When S50 ends, the preview image display process ends.
In the present embodiment, the contents of the preview image renewal process performed in S22 of
In S68, the display data creation unit 44 determines the posture of the mobile terminal device 10. In the case where the mobile terminal device 10 is vertically oriented, the display data creation unit 44 determines YES in S68, and proceeds to S64. In the case where the mobile terminal device 10 is horizontally oriented, the display data creation unit 44 determines NO in S68, and proceeds to S70. Except for the point that the set print condition (i.e., monochrome print, Letter size) is used, the process S70 is the same as the process S50 of
In the present embodiment, the contents of the print data creation process performed in S28 of
In S84, the print data creation unit 40 determines the posture of the mobile terminal device 10. In the case where the mobile terminal device 10 is vertically oriented, the print data creation unit 40 determines YES in S84, and proceeds to S82. Consequently, the printer 60 performs a portrait print of the image 302 on the print medium 300. In the case where the mobile terminal device 10 is horizontally oriented, the print data creation unit 40 determines NO in S84, and proceeds to S86. In the process S86, the print data creation unit 40 creates print data for landscape print. Further, in S86, the sending unit 42 sends the print data for landscape print, with the IP address of the printer 60 obtained in S12 of
The process S86 is fundamentally the same as the process S82. However, in order to cause the printer 60 to perform a landscape print of the image 90 represented by the Web data (see
Furthermore, in the print data created in S86, since the size of each partial image (each letter “A” etc.) is larger, only “A” to “F” is printed on the one piece of print medium 300, and “G” to “L” is not printed. Consequently, in S86, the print data creation unit 40 further creates print data for printing “G” to “L” on another piece of print medium. That is, the number of pieces of print medium required is greater in performing the process S86 than in performing the process S82. When S86 ends, the print data creation process ends.
As shown in
In the present embodiment, not only the portrait print fix mode but also the display dependent mode is adopted. Since the user can select the mode, the user can obtain the printout he/she desires. Furthermore, in the present embodiment, the print data created in S86 of
In the above embodiments, HTML was adopted as the data format of the “specific data”. However, XHTML format Web data, JPEG format data, BMP format data, etc. may be adopted instead.
In the above embodiments, JPEG was adopted as the data format of the “print data”. However, PS (Post Script), XPS, PDF, etc. may be adopted instead. Generally speaking, the print data may have any format that the printer is capable of interpreting. Furthermore, the print data creation unit 40 may create any print data that has a format that the printer 60 is capable of interpreting, this format being obtained as a result of an inquiry to the printer 60.
In the above embodiments, the display controlling unit 30 switches the direction of the image relative to the display 12 in accordance with the posture of the mobile terminal device 10. However, instead, the display controlling unit 30 may switch the direction of the image relative to the display 12 in a case where a predetermined button is operated. Further, the display controlling unit 30 may switch the direction of the image relative to the display 12 in a case where the display 12 moves (e.g., rotates) relative to the main body.
Furthermore, in the above embodiments, the predetermined print condition adopted e.g. in S44 of
Furthermore, the functions of the units taught in the present specification (e.g., the display controlling unit 30, the print data creation unit 40, the sending unit 42, the display data creation unit 44) may be realized by software 26, 28, as shown in the embodiment, or instead may be realized by hardware such as a logic circuit.
Number | Date | Country | Kind |
---|---|---|---|
2010-177339 | Aug 2010 | JP | national |