WO2008064610A1 - Procédé, système et appareil pour commander le fond d'un bureau - Google Patents
Procédé, système et appareil pour commander le fond d'un bureau Download PDFInfo
- Publication number
- WO2008064610A1 WO2008064610A1 PCT/CN2007/071147 CN2007071147W WO2008064610A1 WO 2008064610 A1 WO2008064610 A1 WO 2008064610A1 CN 2007071147 W CN2007071147 W CN 2007071147W WO 2008064610 A1 WO2008064610 A1 WO 2008064610A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- desktop
- file
- background
- link icon
- display
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Definitions
- the present invention relates to the field of computer device display control, and more particularly to the field of desktop control of computer devices.
- the shortcut links for starting various operating system functions and applications are graphically displayed, placed on the screen of the computer display, and can be activated according to the operation of the user on these shortcut links.
- the corresponding application or the corresponding function, the shortcut link may also use menu items or control buttons as expressions, they may be directly displayed in the display of the screen, or may be classified and hierarchically displayed.
- the screen displayed on this screen is called a computer system.
- the desktop at the same time, you can also set the picture as a desktop background to make the screen display more colorful.
- the desktop background occupies most of the desktop, shortcuts are drawn on the desktop background, and the desktop background is set reasonably, which makes the desktop beautiful, the user feels happy, and makes the computer more user-friendly.
- the control method of the desktop background mainly uses the operating system to provide a desktop background image replacement program for the user.
- the image data is stored on the local disk in the form of a "background 2.jpg" file, in the local disk "C: ⁇ My Documents ⁇ My Pictures ⁇ My Desktop ⁇ ” directory," My documents, ", my pictures” and “my desktop” are the directory names of the first, second and third directories under the C drive, respectively.
- My desktop, under include There are multiple image files. If you want to set "Background 2.jpg” as the desktop background, you must select the first, second, and third levels above. You can enter the desired image and set it as the desktop background. .
- the technical problem to be solved by the present invention is to provide a method, device and system for controlling the background of the desktop, so as to solve the problem of low efficiency, unintuitive, inconvenient and unsatisfactory control of the display effect in the prior art.
- the present invention discloses a method for controlling a desktop background, comprising: setting a link icon on a desktop, the link icon pointing to a file stored in a storage unit as a desktop background; receiving the link icon Select to set the content of the file pointed to by the link icon to the desktop background.
- the link icon is a thumbnail of the pointed file, a symbol icon or a text associated with the file and a combination thereof.
- the setting the file content to the desktop background is implemented by: obtaining content of the file pointed by the link icon; and displaying the content of the file on the desktop background.
- the method further comprises dividing the desktop into a shortcut area and a blank area, and setting the link icon in the blank area.
- the method further comprises: setting a desktop floating window, and setting the link icon in the desktop floating window.
- the method further comprises: generating the thumbnail according to a complete display effect of the file content, or generating a thumbnail according to a part of the file content display effect.
- the link icon is displayed in a fixed rank mode, a size fade mode, or a cascade mode.
- the method further includes: when the number of the link icons is greater than the number of displays allowed by the desktop, setting the link icon to a page display mode.
- the method further includes: when the number of the link icons is greater than the number of displays allowed by the desktop When the quantity is set, the link icon is set to the scroll display mode.
- the method further comprises: setting the link icon to a mode capable of receiving a page turning instruction of the computer pointing device to perform a scrolling operation with an adjustable step speed.
- the method further includes: setting the desktop background display content to a mode that can be switched according to an instruction of a computer keyboard or a computer pointing device specific button; or setting the desktop background display content to receive the a mode in which the scroll instruction of the computer pointing device wheel enlarges or reduces the display content; or, the desktop background display content is set to receive a partial selection instruction for the desktop background display content to select the selected partial display
- the content is enlarged to a mode of the entire desktop background; or the desktop background display content is set to a mode that can receive an instruction to move the desktop background display content by pressing the computer pointing device wheel on the background and moving the instruction.
- the mode for reducing the display content is that when the display content is reduced to a preset threshold, the automatic gradation effect is reduced until it reaches a preset size.
- displaying the content of the file on the desktop background is to gradually enlarge the content of the file on the desktop background in an automatic manner until it reaches a preset size.
- the desktop background display content display mode is determined by the following method: First, calculating an actual aspect ratio difference coefficient of the display content aspect ratio and the desktop window aspect ratio, and setting the critical aspect ratio difference coefficient as a score
- the boundary line determines the background image zoom display mode according to the actual aspect ratio difference coefficient and the set critical aspect ratio difference coefficient.
- the file pointed to by the link icon is a picture file, an animation file, an audio file, a video file, a webpage or a text file.
- the selection of the link icon is to click a computer pointing device button on the link icon, double-click a computer pointing device button, scroll the scroll wheel of the computer pointing device, or press a specific button of the keyboard.
- the invention also provides an apparatus for controlling a background of a desktop, comprising:
- a link icon setting unit configured to set a link icon on the desktop, the link icon pointing to a file saved in the storage unit as a desktop background;
- a desktop background setting unit configured to receive a selection of the link icon, and set a content of the file pointed by the link icon to a desktop background.
- the desktop background setting unit further includes: a file content obtaining unit, configured to acquire content of the file pointed to by the selected link icon; a file content display unit, configured to use the file The content is displayed on the desktop background.
- a file content obtaining unit configured to acquire content of the file pointed to by the selected link icon
- a file content display unit configured to use the file The content is displayed on the desktop background.
- the device further includes: a desktop partitioning unit, configured to divide the desktop into a shortcut area and a blank area; and, the link icon setting unit sets the link icon in the blank area.
- a desktop partitioning unit configured to divide the desktop into a shortcut area and a blank area
- the link icon setting unit sets the link icon in the blank area.
- the device further includes: a desktop floating window setting unit, configured to set a desktop floating window; and, the link icon setting unit sets the link icon in the desktop floating window.
- a desktop floating window setting unit configured to set a desktop floating window
- the link icon setting unit sets the link icon in the desktop floating window.
- the link icon is displayed as a thumbnail, a symbol icon or a text mark of the picture file and a combination thereof.
- the device further includes: a first thumbnail generating unit, configured to generate the thumbnail according to a complete display effect of the file content; or a second thumbnail generating unit, configured to use the file content A portion of the display effect generates the thumbnail.
- a first thumbnail generating unit configured to generate the thumbnail according to a complete display effect of the file content
- a second thumbnail generating unit configured to use the file content A portion of the display effect generates the thumbnail.
- the link icon is displayed in a fixed rank mode, a size fade mode, or a cascade mode.
- the device further includes: a paging mode setting unit, configured to set the link icon to a page display mode when the number of the link icons is greater than a display number allowed by the desktop.
- the device further includes: a scroll mode setting unit, configured to set the link icon to a scroll mode display mode when the number of the link icons is greater than a display number allowed by the desktop.
- a scroll mode setting unit configured to set the link icon to a scroll mode display mode when the number of the link icons is greater than a display number allowed by the desktop.
- the device further includes: a page turning mode setting unit, configured to set the link icon to a mode that can receive a page turning instruction of the computer pointing device and perform a page turning operation with an adjustable step speed.
- a page turning mode setting unit configured to set the link icon to a mode that can receive a page turning instruction of the computer pointing device and perform a page turning operation with an adjustable step speed.
- the device further includes: a first background mode setting unit, configured to set the desktop background display content to a mode that can be switched according to an instruction of a specific key of a computer keyboard or a computer pointing device; or, a second background mode a setting unit, configured to set the background display content to a mode that can receive a scroll instruction of the computer pointing device wheel to enlarge or reduce the display content; or a third background mode setting unit, configured to:
- the desktop background display content is set to a mode that can receive a partial selection instruction for the desktop background display content to enlarge the selected partial display content to the entire desktop background; or a fourth background mode setting unit for using the desktop
- the background display content is set to receive a mode of pressing the computer pointing device wheel on the background and moving the instruction to move the desktop background display content.
- the mode for reducing the display content is that when the display content is reduced to a preset threshold, the automatic gradation effect is reduced until it reaches a preset size.
- displaying the content of the file on the desktop background is to gradually enlarge the content of the file on the desktop background in an automatic manner until it reaches a preset size.
- the file is a picture file, an animation file, an audio file, a video file, a web page or a text file.
- the selection of the link icon is to click a computer pointing device button on the link icon, double-click a computer pointing device button, scroll the scroll wheel of the computer pointing device, or press a specific button of the keyboard.
- the present invention also provides a system for controlling a background of a desktop, comprising a computer display for displaying a desktop, characterized in that,
- a link icon setting unit configured to set a link icon on the desktop, the link icon being used to point to a file as a desktop background;
- a desktop background setting unit configured to receive a selection of the link icon, and set a file content pointed by the link icon to a desktop background.
- the link icon is displayed as a thumbnail, a symbol icon or a text mark of the file and a combination thereof.
- the file is a picture file, an animation file, an audio file, a video file, a web page or a text file.
- the present invention has the following advantages:
- the thumbnails can be displayed in the blank area of the desktop, which improves the utilization efficiency of the idle area of the desktop background and enriches the functions of the desktop.
- a thumbnail of a series of files is provided for selection, which allows the user to preview the thumbnail of the candidate file in advance, and can quickly find the background file that he likes, without selecting according to the file name, and the operation is intuitive.
- the computer pointing device can receive the operation of the computer pointing device to display the content on the desktop background, and can switch, enlarge, reduce, partially enlarge or move the desktop background display content, which can control the desktop well.
- the background shows the display of the content.
- Switching from the thumbnail to the desktop background and switching from the desktop background to the thumbnail process can provide a gradual interactive process response, fully demonstrating the overall organic connection between the desktop background and the thumbnail interface, giving the user a seamless feeling.
- Figure 1 is a storage path diagram of a local disk image file
- FIG. 2 is a schematic diagram of a desktop layout of the present invention
- FIG. 4 is a flow chart of Embodiment 1 of the method of the present invention.
- Figure 5a is an example of a layer position map of the present invention 1;
- Figure 5b is a layer position diagram example 2 of the present invention.
- Figure 5c is a layer position diagram example 3 of the present invention.
- Figure 6 is a flow chart of a method embodiment 2 of the present invention.
- Figure 7a is a rendering view of the thumbnail of the present invention displayed on a blank area of the desktop;
- Figure 7b is an effect diagram of the thumbnail display of the present invention in a desktop floating window
- FIG. 8 is a flowchart of a method for determining a corresponding thumbnail according to a position of a mouse according to the present invention
- FIG. 9 is a flowchart of a method for setting a desktop background according to a mouse click according to the present invention
- Figure 10 is a flow chart of Embodiment 3 of the method of the present invention.
- FIG. 11 is a block diagram of an embodiment of the apparatus of the present invention.
- Figure 12 is a block diagram of the system of the present invention.
- Embodiments of the present invention can be applied to computer devices using the Windows XP operating system, but are not limited thereto, and those skilled in the art will readily appreciate that the present invention can be applied to any computer device having a display and a processor.
- the present invention can be applied to any computer device having a display and a processor.
- PDAs personal digital assistants
- mobile phones such as PDAs, mobile phones, digital TV set-top boxes, A notebook or a PC can be considered as a computer device to which the present invention can be applied.
- a typical layout of the desktop is a desktop window 101, a desktop background 102, and a shortcut 103 as shown in FIG. 2.
- the desktop background is divided into two main areas, namely, a shortcut area 104 and a blank area 105.
- a non-existent area boundary 106 is schematically drawn in the figure to facilitate the description herein.
- the figure further includes that the task bar 107 is responsible for task scheduling. And switching, the "Start" button 108 is used to call up more launch links in menu mode.
- the desktop background 102 is a picture overlaid on the desktop window 101 (the picture can also be cancelled by the user and replaced with a monochrome background). For most users, the number of icons on the desktop does not take up more than 1/3 of the total desktop space.
- Some operating systems also support multi-desktop switching. For example, a Linux operating system has four desktops that can be switched by the user. Although Windows XP does not directly provide multiple desktops, it provides a programming interface for creating multiple desktops.
- a virtual desktop may be an alternative to a stand-alone, full-featured operating system desktop control function or a functional extension based on the existing operating system desktop features.
- the desktop does not provide a response to the selection of the mouse in the background area of the desktop and the operation of the scroll wheel.
- the response process of the message can be taken over by the desktop, and then the code is used to respond according to the operation of the mouse. , control the output of the desktop.
- the invention completes the interception of the human-computer interaction message of the desktop by subclassing the desktop, and after analyzing and filtering the message, the API (application programming interface) is called to realize the operation of displaying the content on the desktop when receiving the specific message. And control of the desktop display process.
- the invention completes the control of the desktop by sub-class sub-classification of the desktop window, intercepts the message of the desktop window, and realizes the display control on the desktop background area. And interactive operations.
- the subclassing flowchart of the desktop is as shown in FIG. 3, which specifically includes: first installing a system hook function, and sending a subclassing message to the resource manager, the message triggering a system hook function, and the operating system automatically includes a DLL containing a hook function (dynamic
- the link library is loaded into the resource manager process, and then the hook function is executed, and the system hook function responds to the message to complete the subclassing of the desktop window.
- the processing code can receive the operation information of the user's keyboard, mouse or other computer pointing device on the desktop and respond to the corresponding message.
- Embodiment 1 of the method of the present invention which includes:
- Step 501 Set a link icon on the desktop, where the link icon is used to point to a picture file saved as a desktop background in the storage unit.
- the desktop background file in the embodiment mainly adopts a picture file
- the appearance of the link icon mainly adopts a thumbnail. It should be understood by those skilled in the art that the background file and the link icon of the present invention are not limited to the picture file. And thumbnails.
- the link address of the image file is obtained, and the link icon is generated with the preset display style, and the link icon is drawn to the desktop. Since the subclassing operation on the desktop has been performed in advance, the mouse and keyboard messages can be processed, and when it is judged that the link icon is selected or operated, the response to the operation can be realized by the code, and the corresponding processing is performed.
- the image to be set as the background of the desktop can be located in any directory on the local hard disk, or all the image files in a specified directory.
- These image file sources can be either locally available, downloaded from the network to a local cache directory, or stored on the network.
- the directory where the image files are stored may contain multiple levels of subdirectories, and whether or not the image files in the subdirectories need to be obtained may be set by the user in advance.
- a link icon may be generated that points to the picture file, and the link icon object may include a display attribute and a pointing attribute, and the display attribute defines a display style of the link icon, which may be displayed as a graphic or a symbol. Or text and its combination, in the display style it also Can be invisible, as shown as transparent, in this case, although the link icon is not visible, but can still be selected by the user or use a computer pointing device such as a mouse to click; pointing to the attribute specifies the link icon
- the location information of the picture file, the location information may be the path and file name of the picture file, or other types of location information, such as a URL.
- FIG. 5a is the location map of the layer, from top to bottom: shortcut icon layer, link icon layer and desktop background layer, in this way, the desktop
- the background layer may be covered by the link icon layer and the shortcut layer image; the link icon layer can also be placed at the bottom, as shown in Figure 5b, from top to bottom: shortcut icon layer, desktop background layer and link icon
- the layer can ensure that the background layer of the desktop is not covered by the image of the linked icon layer.
- the link icon layer When the background image occupies the entire desktop background layer, the link icon layer is covered. When the background image is slightly smaller than the entire desktop background layer, the link icon layer portion is visible; You can also set a background layer of the link icon, which is used as the background layer of the link icon. When the background image is not set on the desktop background layer, the background of the entire desktop is displayed as the background image of the link icon background layer, as shown in FIG. 5c. From top to bottom are the shortcut icon layer, the desktop background layer, the link icon layer, and the link icon background layer. They can be set separately and can display both at the same time. The background image of the desktop background layer of the original desktop is overlaid on the background layer of the link icon layer and the link icon.
- the link icon layer and the link icon background layer are It is completely covered and not visible.
- the link icon layer can be activated or displayed for the user to operate through a preset command.
- Optional level control method when drawing on the desktop, you can control the order of drawing by code to express the required hierarchical relationship. You can also encapsulate specific layers in interface elements such as windows, and then control the level of the window to achieve Level control objectives are required.
- the link icon may be a thumbnail, a symbol icon or a text mark of the picture file and a combination thereof.
- the link icon When displayed as a thumbnail of the picture file, it is necessary to generate a thumbnail of the picture file according to the picture file data in advance, which may be generated by calling a thumbnail generation function provided by the operating system, or rewriting the code to read the picture file.
- the data is obtained according to a certain sampling algorithm, and the thumbnail is saved in the data structure of the link icon as an attribute value of the link icon. This method allows the user to conveniently preview the approximate content of the image file, so that the user can select the desired image as the desktop background.
- the link icon can also be displayed as a specific symbol, such as a symbol representing an image, and further, can be displayed as a character representing a picture file type. number. Such as GIF or JPG image icon, etc., allows the user to identify the type of image file and other information.
- the link icon can also be displayed as a text mark, such as text information displayed as "picture”.
- the link icon can also be transparent, not visually displayed, but actually occupies a certain amount of display space, which prevents the link icon from obscuring the desktop background.
- the thumbnail may be a thumbnail of a complete image of the picture file or a thumbnail of a portion of the image.
- the thumbnail When the complete image data is taken to form a thumbnail, the overview of the entire image can be seen in the formed thumbnail, which is convenient for the user to preview the approximate content of the image, but the details may not be clear, and only a part of the image may be taken to form a thumbnail.
- This can better display the details in the image in the thumbnail; when taking a part of the image, you can take the center of the fixed-size image, or you can take the area next to the image, such as the partial image in the upper left corner of the image. You can take square or round partial images.
- the location of the link icon can be anywhere on the desktop.
- the shortcut icon is generally placed on the left side of the desktop (depending on the operating system or user settings), in which case the desktop can be divided into shortcuts according to part of the desktop occupied by the shortcut icon.
- the mode area and the blank area, the link icon of the present invention can be placed in the blank area.
- the link icon and the desktop shortcut icon are displayed in different positions to prevent the two from overlapping or interlacing each other, and the visual appearance is also clear.
- the link icon can also be placed in any window. For the convenience of operation, it is placed in the floating window of the desktop.
- Windows XP there are two kinds of typical desktop floating windows, one is the desktop below all other application windows.
- the child window another floating window can be displayed at the top level (or not at the top level) but can be hidden when not in use. It can be activated by the mouse at the edge of the screen without affecting the normal operation of the user.
- the window activated at the edge of the screen can be Shrink the window that slides out from the edge at the edge of the window, or it can be a window that is displayed directly on the screen.
- the floating window set to the desktop child window and the floating window placed at the top or bottom can always be normal.
- Floating windows are more commonly used in some desktop tools, such as Microsoft's Vista operating system and some of the auxiliary tools that are available on the desktop, such as the clock program, news browser, and mail provided by "Yahoo! Widgets Engine” and "Google Desktop.” Notification tools, etc., as well as timely communication tools such as Tencent QQ also use desktop floating windows.
- a floating window when a floating window is used as the thumbnail container, a floating window in the form of a desktop sub-window that does not occupy the working space is preferably used, and one or more windows may be preset. Taking the Windows XP operating system as an example, the Create Window may be created.
- Create WindowEx create with extended style parameters Window
- This type of desktop floating window is also a part of the entire desktop. Unlike ordinary windows, from the overall logical point of view, this type of desktop floating window is part of the desktop.
- all the link icons may be displayed in one floating window or in multiple floating windows, and the specific display manner is set as needed, and the floating window may be The user can move the desktop to any place as needed, and the user can arrange the desktop independently.
- the floating window displaying the link icon can also be maximized on the background of the entire desktop, so that more link icons can be displayed at one time.
- Link icon When the number of link icons is large, the user can conveniently select the desired one without turning the page.
- Link icon You can also create a normal window as a connection icon container, which can be modified by its properties to have the characteristics of the above desktop floating window.
- the floating window In order to make the display effect of the link icon more harmonious with the desktop, the floating window can be set to a style such as no border and transparent background, which is better integrated with the desktop.
- the link icon may be displayed as a fixed rank mode, a size fade mode or a cascade mode.
- the link icon When the link icon is displayed in the fixed row mode, it is necessary to set or obtain the range of the display area in advance, and preset the display size of the link icon.
- the link icon and the desktop shortcut can also be made.
- the size of the icon is the same, and the size of the link icon can be slightly larger, which can provide a larger link icon for the user to recognize and view, and then add a certain blank space according to the size of the display area and the size of the link icon, and calculate The number of icons to be arranged in each line is displayed on the line by line.
- This mode display makes it easy for the user to browse each link icon, and there is no mutual occlusion between the link icons, which is convenient for the user to select.
- the size gradient mode can also be displayed.
- the currently selected link icon is displayed in an enlarged state, and the enlarged size can be set according to specific needs, for example, the link icon can be set as the original icon. 2 times the size, the link icon located around the enlarged link icon can also be enlarged in a slightly smaller size (if the original 1.5 times), and the other link icons farther away are not enlarged, so
- the link icon has a transition effect on the display, the visual effect is better, and the user can judge and select.
- the zoomed behavior can be associated with the cursor of the computer pointing device, and the position of the cursor of the computer pointing device is enlarged.
- Link icon and switch the enlarged link icon with the movement of the cursor.
- the operating system's message mechanism can be used to intercept and capture the position of the cursor, determine the link icon at this position, and zoom in and display the surrounding The link icon is enlarged in a smaller scale, this way To enable users to more clearly view the information of the link icon to be selected.
- the page display can be performed.
- the control can be performed according to the number of displays per page preset by the user.
- the specific control mode and the effect after the control can be realized and conceived by those skilled in the art, and will not be described here.
- the scroll screen is displayed on the current page to display more link icons, and the operation of scrolling the screen may be directed by the computer.
- the device (such as a mouse) can be controlled by a device such as a scroll wheel or by a page up and down button of the keyboard.
- the stepping speed of the scrolling screen can be dynamically adjusted according to the position of the cursor of the computer pointing device on the screen, which has strong controllability and stepping.
- the advantage of intuitive effect is achieved.
- Step 502 Receive a selection of the link icon, and set a picture file pointed by the link icon to a desktop background picture.
- the operation and status message of the computer pointing device (such as a mouse) on the desktop can be intercepted, and the status message is analyzed, when a specific operation and status are detected, Program code can be triggered for pre-custom processing.
- the selection of the link icon may not be performed by the user, but the selection of the link icon may be automatically implemented.
- a default link icon may be selected.
- the image file pointed to by it is used as the desktop background; it can also be set as the desktop background image according to the last selected link icon saved in advance as the default selection.
- setting the picture file to the desktop background in this step may be implemented by: obtaining the image of the link icon pointing to the picture file; displaying the image on the desktop background.
- Various methods can be used in the specific operation, either directly writing the data of the picture file into the desktop background; or setting an image buffer, writing the image to the buffer area, and then calling the system function.
- Generating an image of the portion of the current desktop other than the desktop background image superimposing it on the image buffer in a predetermined manner, and then replacing the content of the image buffer into the desktop background; those skilled in the art will readily understand that as long as the desktop can be implemented Any method in which the background is set to the selected picture file can be employed, and is not limited to the above two methods.
- the above method further comprises: receiving an operation command of the computer pointing device or the keyboard, and operating the background image of the desktop.
- the invention can realize the control operations of various display effects on the desktop background image, including switching, zooming, partial enlargement and movement of the background image, and the control operations can be used by the user, enriching the display effect of the background image and improving The controllability of the background image increases the aesthetics of the desktop background.
- the operation on the desktop background may be:
- the desktop background image when you press the page flip button on the computer keyboard or the specific button combination preset by the computer pointing device.
- the desktop after the subclassing operation intercepts the delivery of the message, and judges by the program that if it is a predefined instruction to switch the background, the corresponding processing program is called for processing. First, obtain the current background image, obtain the next or previous image file of the current image file according to the user instruction, read the image data of the image file, and write the image data to the desktop background to realize the switching of the image.
- the background image is enlarged or reduced on the desktop.
- the desktop intercepts the wheel operation and the message of the current cursor position.
- the desktop background image zoom function program is called, firstly, the display scale and path information of the image file displayed on the current desktop background are obtained, and the image data of the image file is read. , according to the user command to enlarge or reduce the image, will pass The processed image data is written to the desktop background to achieve a zooming operation on the desktop background.
- Other specific methods may be used to implement the above processing, and are not limited to the methods described above.
- the selected partial pattern can be enlarged to the entire desktop background, and the range of the selected local area can be adjusted in advance before the enlargement, so that the aspect ratio is consistent with the desktop aspect ratio. So that the image is not distorted after zooming into the entire desktop background.
- the desktop background image is moved when the computer pointing device wheel is pressed and moved in the background picture.
- a threshold of a minimum size is preset, and when the reduced desktop background image reaches the threshold, the step of automatically zooming the desktop background image to the desktop is automatically performed several times, automatically Zoom out until the preset size is reached.
- the preset size can be set equal to the size of the link icon.
- the center position of the picture can be simultaneously translated toward the center of the thumbnail to make the zoom out.
- the image size is changed to the link icon size, the center of the image and the center of the link icon coincide, which simulates the effect of the image automatically flying into the link icon; similarly, the automatic zooming process can also be applied to make the background image eventually disappear in the center of the desktop or other locations. You can also change the center shift rule and add more intermediate sizes to achieve more complex automatic gradient reduction. This display effect improves the user's experience.
- the selection of the link icon is to scroll a scroll wheel of the computer pointing device on the link icon, and displaying the content of the file on the desktop background is to gradually enlarge the content of the file in an automatic manner.
- On the desktop background until it reaches a certain preset size or display scale, for example: receiving the zoom instruction of the user pushing the scroll wheel for the first time on the link icon B adjacent to the link icon A of the current desktop background file, and obtaining the link icon B
- the content of the file pointed to, the content of the file is first drawn on the desktop, just over the area of the link icon B, the initial position size is the same as the link icon, then the drawing position is repeated and the redraw is enlarged until it finally draws the picture.
- the image file is set to a larger background ratio than the previous time. .
- the effect achieved by this is:
- the link icon is the thumbnail of the desktop background file
- the user will see that the thumbnail is gradually enlarged and flies to the center of the screen, which is actually The background file corresponding to the thumbnail, rather than the thumbnail itself, is automatically enlarged while panning to the center of the desktop background.
- the computer pointing device may be a mouse, a pointing stick, a trackball or a touch pad. And is not limited to these devices. These computer pointing devices can send operating instructions to the computer device through the communication interface to implement control operations on the computer device, and the most widely used one is a mouse.
- the selection of the link icon is to click a computer pointing device button on the link icon, double-click a computer pointing device button, scroll the scroll wheel of the computer pointing device, or press a specific button of the keyboard.
- it can be a left click or a right click using a mouse or a double click command.
- the present invention proposes a picture and a desktop in addition to the tiling, stretching, and medium mode in the prior art, and the picture is filled in width and full in length.
- the intelligent full-filling method related to the difference coefficient of the aspect ratio of the window is based on the difference ratio of the critical aspect ratio of the set picture and the desktop background window, and the difference coefficient and setting according to the actual aspect ratio
- the relationship between the critical aspect ratio and the difference coefficient is determined by the background image zoom display mode employed.
- the picture is displayed on the desktop background in a vertical and horizontal manner with the desktop window stretched; when the picture file and the desktop are When the actual aspect ratio difference coefficient of the window is greater than the critical aspect ratio difference coefficient, the aspect ratio of the picture before and after the zoom is kept unchanged, and the picture is stretched and displayed on the desktop according to the mode in which the relatively long side is filled with the desktop window.
- the implementation effect of the method is that the desktop background can adopt different default display modes according to different picture aspect ratios: when the picture aspect ratio is substantially the same as the desktop aspect ratio, the user can obtain a picture with less distortion and fill the desktop window.
- Full-screen desktop display effect For portraits with a large aspect ratio compared with the desktop background aspect ratio, select the vertical fill mode, leave a blank area on the left and right sides of the screen, so as to keep the scale of the image unchanged, For landscape-wide wide pictures, select horizontal full mode, and leave blank areas on the upper and lower sides of the screen; when the actual aspect ratio difference coefficient of picture files and desktop windows does not exceed the critical aspect ratio difference coefficient, you can also shorten the picture file.
- the full-fill mode is displayed on the desktop background, and the effect is: By discarding a part of both ends of the long side for a full-screen display effect, and preventing blanks on both sides of the short side from affecting the display effect.
- the specific implementation method of the method is:
- the height and width of the image be hpic, wpic, the height and width of the desktop are hdesk, wdesk, the critical aspect ratio difference coefficient a, and the critical aspect ratio difference coefficient a can be set by the user, which indicates that the user can The degree of deformation of the tolerated picture.
- the image is stretched on the desktop using the stretched display within the user's tolerable range.
- the image is displayed on the desktop background in a vertical and horizontally filled desktop window.
- the image is actually in landscape and portrait orientation. Shrinkage multiple Equal, for unequal stretch. If m>a, it means that the size ratio of the picture and the size ratio of the desktop are quite different. The deformation of the picture on the desktop using the stretch display exceeds the tolerance range of the user. At this time, the aspect ratio of the picture before and after the zoom is maintained. Invariably, the display is stretched according to the mode in which the long side is full of the desktop window: If hpic/wpic,> hdesk/wdesk, the scale of the image is calculated as hdesk/hpic according to the vertical full desktop of the picture, and then the zoom is performed. Scale completes the drawing of the picture on the desktop.
- Another optional full method When m ⁇ a, the full-screen stretching is not used and the short-edge full-filling method is adopted.
- the algorithm can be easily introduced by referring to the judgment method in the above example, m>a, and is no longer praised.
- the short side is full of the desktop window, and the ends of the long side are not visible because they are beyond the screen.
- the advantage of this method is that the part of the two sides of the long side can be discarded to obtain a full-screen display effect, because of the height and width between the picture and the desktop.
- the ratio of the difference is smaller, and the proportion of the discarded part is correspondingly smaller, which usually does not affect the integrity of the picture; for the case of m>a, it can still be used but not limited to the long side of the above m>a Full mode.
- the link icon can not only point to various types of picture files, but also can point to various multimedia files, for example, multimedia files such as animation files, audio files, video files, web pages or text files.
- multimedia files such as animation files, audio files, video files, web pages or text files.
- the corresponding file content can be displayed on the desktop background, and the corresponding media player program or control, plug-in is automatically called for the file that needs the media player to display its content.
- Play play on the desktop background, for example, by adding a desktop window sub-window on the desktop, loading the media player control in the window or writing the decoding play code yourself can play the movie on the desktop background.
- Desktop operations can be performed while the user is enjoying the movie.
- the content can be displayed directly on the desktop background in a similar way, but the corresponding presentation components may be used for different file types or the corresponding code needs to be written.
- This support for multimedia files enriches the user's choice range, increases the functionality of the desktop, and makes it easier for users to call media files.
- the method for generating the link type icon of the thumbnail type may also use the operating system or the component supporting the display of the type file to intercept the display effect, or may be based on Its file type structure rewrites the code to read the data of the file, according to the The class file decoding algorithm gets the thumbnail and saves the thumbnail in the data structure of the link icon as an attribute value of the link icon.
- the URL address of the image file stored on the network In order to facilitate downloading pictures from the network, you can check the URL address of the image file stored on the network according to the default or user settings, check whether there is a new picture file on the network at startup or at startup, and if so, download the new picture file.
- the new image file can be displayed in the semi-transparent manner at the top of the desktop. When the display ends or the user clicks on a specific area, the image disappears. This way, the user can see the image of the latest image file downloaded, which is convenient for subsequent The advantage is that the user is notified without disturbing the user's work. You can also display the newly downloaded image on the entire desktop or in the desktop floating window on the desktop.
- the invention can also use the operation instruction of the mouse pointer to a specific area on the screen to complete different operations, for example: the definition of the command in the 9-square grid mode, and the virtual space of the desktop after setting the desktop background is virtually defined as the 9-square grid area.
- Specify the corresponding operation for the mouse operation message in each area for example: Double-click on the right grid to switch to the next desktop background image, double-click in the left grid to switch to the previous desktop background image, double-click in the middle grid to fill in Switch to the previous snapshot, double-click to switch to the previous snapshot in the upper grid, and double-click to switch to the next snapshot in the lower grid.
- This has the advantage of providing a rich, fast adjustment of the desktop background without the need for an additional control interface.
- the link icon in this embodiment is displayed as a thumbnail form of the picture file, and the thumbnail is displayed in a blank area of the desktop, which is increased compared with the embodiment 1.
- the page turning and scrolling control, as well as the desktop zooming and panning control specifically include the following steps:
- Step 701 dividing a blank area of the desktop.
- the number of shortcut icons placed on the desktop is generally small, and generally arranged in the left half of the desktop, and the right half of the desktop is basically a blank area, which can be provided through windowsXP.
- the interface calling function obtains the location information of the blank area. For example, the position of the rightmost shortcut icon on the desktop can be obtained, and then the width of the blank area on the right side can be calculated, and the position and height of the task bar can be used to calculate the blank area. The height, the plexus, gets the position of the blank area.
- the desktop implements the application guidance with different technical solutions, it does not necessarily adopt the form of a shortcut icon, and may also adopt a layered, classified menu, a drawer interface, etc., but these are not related to the method.
- the method of obtaining a blank area conflicts.
- the location of the blank area varies depending on where the shortcut icons are placed on the desktop. For example, when the shortcut icon is placed on the right side of the desktop, the blank area may be on the left side of the desktop, in some other cases. The blank area may also be in the middle or in the upper and lower half of the desktop.
- Step 702 setting a thumbnail in a blank area of the desktop.
- the path of the image file is obtained, and the thumbnail of the image file is extracted as the attribute of the thumbnail.
- the size of the thumbnail can be set by the user in advance according to the pixel setting.
- the number of thumbnails that can be displayed per screen is limited due to the physical area limitation of the screen display size. If the number of thumbnails that can be accommodated per page by the physical area size is displayed, If you have more thumbnails, you will need to turn pages.
- the number of thumbnails displayed per page can be set by the user, and when the number exceeds the number of screens that can be displayed per screen physical space limit, the page turning operation is replaced by providing scroll operation control.
- the user can specify the outer border display effect of the thumbnail, for example, using a stereoscopic shadow border, an embossed highlight effect, and the like.
- Ncols (wtotal- wmargin)/ ( wthumb+wdelta)
- nrows represents the number of rows of thumbnails
- htotal represents the height of the blank area of the desktop
- hmargin represents the size of the space reserved for the thumbnails
- hthumb represents the height of the thumbnails
- hdelta represents the vertical spacing between the thumbnails.
- Ncols indicates the number of columns in the thumbnail
- wtotal indicates the width of the blank area of the desktop
- wmargin indicates the size of the space reserved for the thumbnail
- wthumb indicates the width of the thumbnail
- wdelta indicates the horizontal spacing between the thumbnails.
- Npages npics/( nrows * ncols) + npics mod ( nrows * ncols)
- npages represents the number of pages of the thumbnail
- npics represents the number of images
- nrows represents the number of lines per thumbnail
- ncols the number of columns per page.
- the control, page turning control mechanism may be a number with a link function displayed as 1-n, or may be added with a numeric input box for inputting a page number to be displayed, and a jump link for the next page, the last page, and also the last page. It can be a regular paging label (such as the tab control for Windows) and other interface elements that can be used for paging control.
- the thumbnail image is displayed in the blank area of the desktop.
- the desktop background 801 is divided into two main areas, namely, a shortcut area 804 and a thumbnail area 805, and the shortcut area is used for the original shortcut 803.
- the thumbnail 802 is displayed in the thumbnail area 805, and further includes a page turning control button 806, and a scroll bar 807 for performing scroll control within one page.
- the appearance and visibility of the page turning control button 806 and the scroll bar 807 can be based on the user. Used to set it up.
- a method of controlling the scrolling of the screen by the mouse is adopted: When the user presses the middle button of the mouse, a scrolling indicator icon is displayed at the position of the mouse pointer. At this time, when the user moves the mouse up and down, left and right, It is understood that the scrolling operation is automatically performed, and the further away from the icon, the faster the scrolling speed. This function will continue to run continuously until the user operates the middle button again or until the mouse pointer returns to the vicinity of the scroll indicator icon. This mode makes the total scroll control difficult, and is rarely recognized by the user.
- the present invention provides a humanized response by associating the scrolling action of the mouse with the position of the screen where the mouse is located, and the method of determining the scrolling speed according to the distance between the current position of the mouse and the position when the scroll wheel is pressed, the present invention
- the disclosed method has the characteristics of strong controllability and intuitive effect.
- holding down the mouse wheel in the thumbnail mode to move the mouse is designed to smoothly move the thumbnail list mode, and scrolling the mouse wheel is defined as a list scrolling operation, and the specific method of the list scrolling is:
- the scrolling step amount is calculated according to the Y coordinate of the mouse pointer on the desktop (similar to the other technology can also be applied to other windows) and the total height of the desktop window, and the visible thumbnail is adjusted according to the step size. Finish drawing refresh.
- the user executes the scroll wheel
- the page turning operation is set to the whole page update
- the similar operation is performed in the lowermost area of the desktop window, it is set to scroll the unit in one step, and the number of operation response steps of the mouse in other positions in the vertical direction is proportionally interpolated.
- the calculation formula is: Assume that the top Y coordinate of the desktop window is 0, the bottom Y coordinate is y, the mouse pointer is at the bottom when the scroll step is tl (1 or specified by the user), and the mouse pointer is scrolled at the top. The amount is t2 (the number of lines that can be included in the whole page can also be specified by the user).
- the Y coordinate of the mouse pointer on the screen is X
- the corresponding step size should be (t2-tl) /y* ( Yx ).
- Step 703 Receive a user selection of a thumbnail, and set a file content pointed to by the selected thumbnail as a desktop background.
- the index of the thumbnail selected by the user can be obtained by intercepting the message of the mouse, and the index number of the thumbnail is the number of each thumbnail, and the corresponding thumbnail is found according to the index number, and the thumbnail is obtained.
- the pointing property of the thumbnail points to the directory path and file name information of the image file stored in the attribute, and then reads the data of the image file, writes a desktop background data buffer, and processes the image using the smart full mode to implement the setting.
- the function of the desktop background is the function of the desktop background.
- the system intercepts the cursor position of the mouse and the scroll wheel operation, determines that the scroll operation is performed on the thumbnail, and calls the corresponding handler.
- the processing program obtains the index number of the thumbnail located under the cursor, and then obtains the image file pointed by the thumbnail, and gradually enlarges the image file on the desktop background in an automatic manner until it reaches a certain preset size or display ratio, for example, :
- the user receives the zoom instruction of the scroll wheel for the first time on the link icon B adjacent to the link icon A of the current desktop background file, and obtains the file content pointed by the link icon B, and the content of the file is first drawn on the desktop.
- the area covered by the link icon B has the same initial position as the link icon, and then repeatedly moves the drawing position and enlarges the redraw until the center of the final drawn picture coincides with the center of the desktop window, and the maximum edge size of the drawn picture is the corresponding desktop. 1/3 of the window size, after that, with the scrolling zoom operation Continued, the picture file is larger than the previous ratio is set to the desktop background.
- the link icon is a thumbnail of the desktop background file
- the user when the user first issues a scrolling enlargement instruction on a link icon, the user will see that the thumbnail is gradually enlarged and flies to the center of the screen, actually The background file corresponding to the thumbnail, rather than the thumbnail itself, is automatically enlarged while panning to the center of the desktop background.
- Such a response method organically combines the process of switching the background image from the thumbnail state to the full-screen background and the user interaction process, which not only enhances the controllability of the setting process, but also gives a step by step by step.
- Scrolling forward on the scroll wheel here means zooming in, just an optional one.
- Step 704 Receive a user background background zoom instruction, and enlarge or reduce the desktop background image.
- the desktop image After the desktop image is set, when the full image is displayed in a full desktop manner, the details of the screen are not too clear due to the limitation of the visible area of the desktop. If the resolution of the background image used is relatively high, the user can select one of the images. Locally, the desktop system automatically enlarges the part of the image and fills the desktop background, which can better adjust the display style of the desktop background, giving the user more choices for adjusting the display effect, and making the user more user-friendly.
- the system obtains the current position and motion of the mouse, and after determining that the local image is selected, the user's mouse selection is obtained through calculation.
- the coordinates of the upper left corner and the lower right corner of the time get the selected range.
- the data of the selected partial image can be obtained, and the partial image data is written into the desktop background buffer.
- the partial image data is displayed in full screen as the target to adjust the proportion of the display, and then replaced with the background of the current desktop, thus realizing the partial enlargement operation of the designated area of the desktop background. If there is a shortcut icon in the area selected by the user, the background image is not processed, and the message is delivered to the original handler to process the selected shortcut icon.
- the range of the selected selection can also be adjusted so that the aspect ratio is consistent with the aspect ratio of the desktop, and the adjusted selection range is obtained to obtain the data of the partial picture for subsequent processing. After zooming in to the entire desktop background, the display of the image is not distorted.
- the specific operation of zooming in and out of the background image is that the user scrolls the mouse wheel on the desktop background image, the system intercepts the position of the mouse light cursor and the operation of the wheel, and calls the corresponding program to the desktop background.
- the image in the picture is zoomed in or out proportionally, and then the background image is redrawn.
- the preset size can be set equal to the size of the link icon
- the center position of the picture can also be translated toward the center of the thumbnail at the same time, so that the reduced picture size is gradually changed to the size of the link icon, and the center of the picture and the center of the link icon coincide.
- the invention also proposes a method for panning a desktop background image: when the desktop background image is displayed on the desktop window with a size larger than the thumbnail size, the user displays the desktop background image by pressing and holding a specific keyboard combination or a combination of mouse buttons. Position and area adjustments.
- the method display effect is that the overall position of the image is moved on the desktop.
- the desktop can only display a part of the image.
- the method operation display effect is to flexibly adjust the specified portion of the image displayed in the desktop window range on the desktop.
- the present invention provides a free-scaling and panning operation similar to a picture browser directly on the desktop without launching an external picture browsing software, which can fully satisfy the user's details on the desktop or some of the pictures.
- the invention can also realize the related operation of the file directly in the thumbnail area, for example: by determining the keyboard and the mouse selection area, the selected thumbnail list can be obtained, and the corresponding picture file list can be obtained according to the thumbnail list,
- the picture file is described in the clipboard of the system, and then the related file operation API, that is, the picture file, can be used to perform operations such as selecting, cutting, copying, pasting, moving, etc. similar to ordinary files, and the operation effect of the method can be combined with the operating system.
- a typical user interface such as a file operation menu activated by the right mouse button, can also be seamlessly integrated with the operating system file manager. Take Windows XP as an example, perform a copy operation on the thumbnail interface, and then open the resource manager.
- the OpenClipboard function of the API of the system can be called to open the clipboard, and the file to be copied is set by using the SetClipboardData function.
- the specific implementation of different operating systems may be different, and it is easy for a person of ordinary skill in the art to implement. understanding.
- the specific implementation method for determining the corresponding thumbnail according to the position of the mouse is as shown in FIG. 8.
- the method includes: setting an index number global variable in advance for recording the index number of the current thumbnail, when the mouse cursor is at When moving on the desktop, you can get the coordinate position of the mouse on the current desktop by intercepting the message transmission of windowsXP, usually a coordinate value, in order to determine which thumbnail the mouse is located in.
- initialize the index number global variable and then use the method input of the desktop object provided by windowsXP to get all the thumbnails, loop through each thumbnail, first take the first thumbnail, calculate the position of the thumbnail, according to the front The position of the obtained mouse determines whether the mouse is located on the thumbnail.
- thumbnails can be selected by combining shift, Ctrl, etc., and mouse frame selection, and functions such as pasting and copying can be used, for example, in the resource manager, multiple image files are selected.
- select the copy function move the mouse to the desktop, select the paste function, the system intercepts this message, and performs the following processing, copy the selected image file to the default directory of the preset desktop background image file, and generate a thumbnail.
- the user can click on the thumbnail to set the desktop background; also can not copy the image file to the default directory of the desktop background image file, directly set the thumbnail of the selected image file on the desktop for the user to click.
- the thumbnail corresponding to the current position of the mouse can be obtained by the method of FIG. 8, which provides a premise for further performing other operations on the thumbnail.
- the specific implementation method of setting the desktop background according to the mouse click is as shown in FIG. 9 , which specifically includes: when the user clicks on a thumbnail on the desktop, the mouse click is first intercepted.
- the operation message takes the current mouse position, obtains which thumbnail the mouse is located according to the method in FIG.
- steps 1005 to 1010 using the CreateCompatibleDC provided by the system Create a memory device context) function to create a desktop compatible device context hdcMem, create a memory image cache bmpMem via CreateCompatibleBitmap (create a device compatible memory bitmap), load bmpMem into hdcMem via SelectObject (select object to device context), and place the image buffer Image data in bmpl passes the BitBlt (bitmap copy) function Copy to hdcMem, call the original WM PAINT message of the desktop window through CallWindowProc (call window processing), use hdcMem as a parameter, draw the original content of the desktop (including shortcut icons, etc.), through BitBlt ( Bitmap copy) The function copies the drawn content in hdcMem to the DC (device context) of the desktop window to complete the setting and display of the desktop background. It should be noted that the steps 1005 to 1010 are also a custom drawing process
- the link icon can also be displayed as a symbol mark or a text mark and a combination thereof.
- the process of receiving the thumbnail selected by the user and setting the image file pointed by the thumbnail to the background of the desktop is realized.
- the background image is first drawn in the buffer area, and then the image data of the buffer is copied to the desktop.
- the methods in the background speed up the speed of other related operations on the desktop background.
- a method of directly copying data of a picture file to a desktop background may also be adopted.
- other related operations on the background image such as zooming, panning, etc., may also share the same buffer area to achieve the purpose of speeding up the operation with a minimum of memory usage.
- the main difference between the embodiment and the method embodiment 2 of the present invention is that the present embodiment displays the thumbnail in the floating window of the desktop, and provides other functions in addition to providing the thumbnail control desktop function, and steps and steps 2 The repeated parts are not described in detail.
- Step 1101 setting a floating window on the computer desktop.
- the implementation of the window function provided by windowsXP adds a floating window to the existing desktop.
- the floating window in this embodiment in addition to providing a desktop background through thumbnails, also groups the interfaces and functions through the tab control of windowsXP, and implements thumbnail switching of the desktop background under the first tab, in another option.
- the "mail management" function is implemented under the card, and similarly, different functions can be implemented in different areas of the floating window. In this case, the present invention is implemented only as a partial element of a comprehensive application system.
- Step 1102 setting a thumbnail in the desktop control area of the floating window.
- Step 1103 Receive a user selection of a thumbnail, and determine an index number of the selected thumbnail.
- Step 1104 Set a picture file pointed by the thumbnail selected by the user as a desktop background picture. Referring to FIG. 7b, the thumbnail image is displayed on the desktop floating window.
- the floating window 8205 is displayed on the desktop background 8201, the shortcut area 8204 is used for displaying the original shortcut 8203, and the floating window 8205 includes the thumbnail control desktop.
- the tab 8208 and the mail management tab 8209, the thumbnail 8202 is displayed in an area controlled by the tab 8208, the area further includes a page turning control button 8206, and a scroll bar 8207 for scrolling control within one page, the page turning control button 8206
- the appearance and visibility of the scroll bar 8207 can be set according to user habits, and the mail management tab 8209 controls the mail management function area.
- the user can also use the mouse wheel to scroll on the thumbnail, and the image file corresponding to the thumbnail is displayed on the desktop background with a small size by an automatic gradient effect, and the user continues to scroll the scroll wheel.
- the desktop background image can be enlarged, and the user's use feeling is the desktop background obtained from the thumbnail enlargement, the operation is smoother, and the user's use feeling is improved; preferably, when the desktop background is reduced, a preset minimum is The width of the size, when the reduced desktop background image reaches this threshold, the steps of automatically zooming the desktop background image to the desktop several times are automatically rotated until the preset size is reached, for example, the preset size can be set equal to the link.
- the size of the icon can be set equal to the link.
- the center position of the picture can be simultaneously shifted toward the center of the thumbnail, and the center of the picture and the center of the link icon coincide when the size of the reduced picture is changed to the size of the link icon.
- FIG. 11 there is shown a block diagram of an embodiment of the apparatus of the present invention. Includes:
- a link icon setting unit 1201 configured to set a link icon on the desktop, the link icon pointing to a picture file stored in the storage unit as a desktop background;
- the desktop background setting unit 1202 is configured to receive a selection of the link icon, and set a picture file pointed by the link icon to a desktop background.
- the link icon setting unit 1201 According to the picture file specified by the user, the link icon setting unit 1201 generates a link icon pointing to the picture file, the link icon includes a display attribute and a pointing attribute, and the display attribute defines a display style of the link icon, which can be displayed as a thumbnail , symbol or text, or a combination of the three, it can also be invisible; the pointing attribute specifies the pointing information of the picture file pointed to by the link icon.
- the link icon setting unit 1201 displays the generated link icon on the desktop.
- the desktop background setting unit 1202 intercepts the operation and status message of the computer pointing device (such as a mouse) on the desktop, and by analyzing the status message, when a specific operation and status is detected, the program code can be triggered to perform pre-customized processing.
- the click operation of the pointing device of the computer is intercepted, the current coordinates of the cursor of the pointing device of the computer are obtained, and the position of the displayed icon of the link icon is determined, and it is determined which link icon the computer pointing device performs on the link icon.
- Click the action take the pointing attribute of the link icon, find the corresponding picture file, open the picture file, read the picture data, and write the picture data to the desktop background, thus realizing the operation of setting the desktop background.
- the message is handed over to the desktop message response processing code of the original system for processing, and the user may click on a shortcut icon.
- the desktop background setting unit further includes:
- the image obtaining unit 12021 is configured to acquire image data of the image file pointed to by the selected link icon;
- the image display unit 12022 is configured to write the image data into the desktop background
- the image display unit 12022 can adopt various methods in the technical operation of the specific implementation, either directly writing the image data into the desktop background, or pre-generating the image replacing the desktop background, and then writing the image to the desktop at one time.
- the link icon is displayed as a thumbnail, a symbol icon or a text mark of the picture file and a combination thereof.
- thumbnail of the picture file When displaying the thumbnail of the picture file, it is necessary to generate a thumbnail of the picture file according to the picture file data in advance, which may be generated by calling a thumbnail generation function provided by the operating system, or rewriting the code to read the picture file.
- the data is obtained according to a certain sampling algorithm, and the thumbnail is saved in the data structure of the link icon as an attribute value of the link icon.
- the link icon can also be displayed as a specific symbol, and of course the link icon can also be displayed as a text mark.
- the link icon can also be transparent and not visually displayed, but actually takes up a certain amount of display space and can respond to user selections.
- the device further includes: a first thumbnail generating unit 1203, configured to generate the thumbnail according to a complete image of the picture file; or a second thumbnail generating unit, configured to use the image file according to the image file A portion of the image generates the thumbnail.
- a first thumbnail generating unit 1203 configured to generate the thumbnail according to a complete image of the picture file
- a second thumbnail generating unit configured to use the image file according to the image file A portion of the image generates the thumbnail.
- the thumbnail may be a thumbnail of a complete image of the picture file or a thumbnail of a portion of the image.
- an overview of the entire image can be seen in the formed thumbnail; when a part of the image is taken, the central area of the fixed-size image can be taken, or
- the area next to the picture, for example, the partial picture in the upper left corner of the picture, can take a square or a circular partial picture.
- the desktop partition unit 1204 is further configured to divide the desktop into a shortcut area and a blank area; and, the link icon setting unit 1201 sets the thumbnail in the blank area.
- the location of the link icon can be anywhere on the desktop.
- the shortcut icon is generally placed on the left side of the desktop.
- the desktop can be divided into a shortcut area and a blank area according to a part of the desktop occupied by the shortcut icon, and the link icon of the present invention can be Placed in the blank area as described.
- the desktop floating window setting unit is further configured to set a desktop floating window; and the link icon setting unit sets the thumbnail in the desktop floating window.
- the link icon setting unit can theoretically set the thumbnail in any type of window, the desktop floating window is preferentially taken into consideration in consideration of the convenience of the operation.
- Windows XP there are two typical desktop floating windows.
- One is the desktop sub-window that is always below the other application windows.
- the other floating window can be displayed at the top (or not at the top) but not used. Can be hidden, activated by the mouse at the edge of the screen, does not affect the normal work of the user.
- the window activated at the edge of the screen can be a window that zooms out from the edge of the window at the edge, or a window that is directly displayed on the screen. .
- the floating window set to the desktop child window and the floating window placed at the top can always be normal. It is also possible to create a normal window as a connection icon container, which can be modified by its properties to have the characteristics of the above desktop floating window.
- the link icon is displayed in a fixed rank mode, a size fade mode, or a cascade mode.
- the link icon is displayed in the fixed row mode, it is necessary to preset or obtain the range of the display area, and preset the actual size of the link icon.
- the link icon and the desktop shortcut can also be made.
- the size of the icon is the same, and then according to the size of the display area and the size of the link icon, a certain blank space is added, the number of icons that should be arranged in each line is calculated, and the link icon is displayed line by line.
- the size gradient mode can also be displayed.
- the currently selected link icon is displayed in an enlarged state, and the enlarged size can be set according to specific needs, for example, the link icon can be set as the original icon. 2 times the size, the link icon around the enlarged link icon can also be enlarged in a slightly smaller size (if the original 1.5 Double) display, other link icons that are farther away are left unmagnified, and the zoomed behavior can be associated with the cursor of the computer pointing device, and the link icon of the position of the cursor of the computer pointing device is enlarged, and The movement of the cursor switches the enlarged link icon.
- the operating system's message mechanism can be used to intercept and acquire the position of the cursor, determine the link icon at this position, and zoom in, and enlarge the surrounding link icon by a small scale. display.
- the paging mode setting unit 1205 is further configured to set the link icon to the page display mode when the number of the link icons is greater than the number of displays allowed by the desktop.
- the method further includes a scrolling mode setting unit 1206, configured to set the link icon to a scrolling mode display mode when the number of the linked icons is greater than the number of displays allowed by the desktop.
- a scrolling mode setting unit 1206 configured to set the link icon to a scrolling mode display mode when the number of the linked icons is greater than the number of displays allowed by the desktop.
- the page turning mode setting unit 1207 is configured to set the link icon to a mode that can receive a page turning instruction of the computer pointing device to perform a page turning operation with an adjustable step speed.
- the stepping speed of the scrolling screen can be dynamically adjusted according to the position of the pointing finger of the computer pointing device on the screen.
- the method further includes:
- a first background picture mode setting unit 1208, configured to set a desktop background picture to be a mode for receiving an instruction of a computer keyboard or a computer-specific pointing device specific button;
- a second background picture mode setting unit 1209 configured to set a desktop background picture as a mode for receiving a scroll instruction of the computer pointing device wheel to enlarge or reduce the background picture;
- a third background picture mode setting unit 1210 configured to set a desktop background picture as a mode that can receive a partial selection instruction for the background picture to enlarge a part of the selected picture to the entire desktop background;
- the fourth background picture mode setting unit 1211 is configured to set a desktop background picture as a mode for receiving the desktop background picture by pressing an instruction of pressing the computer pointing device wheel on the background picture and moving.
- the above four background picture mode setting units are capable of receiving an operation command of a computer pointing device or a keyboard, and operating the background image of the desktop, thereby realizing various display effects on the desktop background image. Control operations, including switching, zooming, partial zooming, and moving the background image.
- the mode for reducing the display content is: when the display content is reduced to a preset threshold, the automatic gradation effect is reduced until it reaches a preset size.
- displaying the content of the file on the desktop background is to gradually enlarge the content of the file on the desktop background in an automatic manner until it reaches a preset size.
- the link icon can not only point to various types of picture files, but also can point to various multimedia files, for example, animation files, audio files, video files, web pages or text files. file.
- the embodiment may further include: a link icon setting unit, configured to set a link icon on the desktop, the link icon points to a multimedia file saved as a desktop background in the storage unit; and a desktop background setting unit, configured to receive the The selection of the link icon sets the content of the multimedia file pointed to by the link icon to the desktop background.
- the selection of the link icon is to click a computer pointing device button on the link icon, double-click a computer pointing device button, scroll the scroll wheel of the computer pointing device, or press a specific button of the keyboard.
- FIG. 12 there is shown a block diagram of the system of the present invention. Including a desktop 1301 displayed on a computer display for displaying a desktop background, and including
- the desktop background control device 1302 includes the following units:
- the link icon setting unit 13021 is configured to set a link icon on the desktop, where the link icon is used to point to a file saved in the storage unit as a desktop background;
- the desktop background setting unit 13022 is configured to receive a selection of the link icon, and set a file content pointed by the link icon to a desktop background.
- the link icon is displayed as a thumbnail, a symbol icon or a text mark of the picture file.
- the file may be a picture file, an animation file, an audio file, a video file, a web page or a text file.
- the link icon setting unit According to the user pre-specified image file that needs to be set as the desktop background, the link icon setting unit
- the desktop background setting unit 13022 Accept the user's choice, get the file content pointed to by the selected link icon, and set it as the desktop background.
- the content of the file is a picture; setting the picture as a desktop background, for a file that requires the media player to display its content, automatically calling the corresponding media player program or control, plug-in to play. Play on the desktop background during playback, for example, by adding a sub-window of the desktop window to the desktop, loading the media player control in the window, or writing the decoding playback code yourself to play the movie on the desktop background.
- Desktop operations can be performed while the user is enjoying the movie. As an extension, you can also switch to a pop-up window for playback by user settings. Similarly, for flash animations, web pages, or text files, you can display content directly on the desktop background in a similar way.
- the preferred way of drawing the desktop background is to perform various drawing operations directly on the windows desktop window object.
- the operation method of setting the desktop background it is feasible.
- placing an object under the desktop shortcut simulates the display of the desktop background.
- the specific call details may vary, but the core idea is the same.
- the present invention can be implemented using Windows ActiveDesktop (Active Desktop) technology.
- Windows XP's ActiveDesktop provides a programming interface that allows the user to specify a web page as the desktop and enter the address of the web page when setting the background file.
- ActiveDesktop itself is concerned, it actually provides a web container, with a web browser window embedded in the desktop or paving the entire desktop as the desktop background.
- the web page displayed in the browser window on the desktop background has the same characteristics as the ordinary web page. If you can have a hyperlink, you can click and so on.
- the ActiveDesktop interface method such as AddDesktopItem (adding desktop items), adds a desktop item to the desktop to display and maximizes the desktop page.
- the web page is displayed on the desktop background, and the desktop shortcut function is integrated with the desktop.
- the thumbnails to be operated are displayed in web pages added to the desktop, and individual thumbnails can be displayed using built-in objects in HTML (Hyper Text Markup Language).
- the thumbnails can also be placed in a window on the webpage, and the window can be implemented in the webpage through the HTML object simulation.
- Sources of desktop background settings and thumbnails such as images, videos, etc. can be downloaded from the server to the web page, or embedded in the web page to embed the COM (Component Object Model) component, and the COM component to access the local file to be displayed on the web page.
- COM Component Object Model
- DHTML Dynamic Hypertext Markup Language
- scripts such as JavaScript, etc.
- the thumbnail object saves the properties of the original image of the thumbnail, how it is displayed, and so on.
- the thumbnail object of the trigger event is obtained from the event parameter
- the original file location of the thumbnail is obtained from the property of the object.
- DHTML can be used to simulate most of the functions of a normal desktop application on a page.
- COM components can be used to extend the implementation.
- the core idea is the same as that of Embodiment 1, and one of ordinary skill in the art can easily implement the reference to Embodiment 1.
- a COM component is embedded in a webpage, and the COM component is filled with the entire webpage and integrated on the desktop for display.
- the embedded COM component responds to the operation message, completes the display and control of the thumbnail and desktop background, and the implementation of the present invention is completed in the COM component as described in Embodiment 1.
- thumbnails In order to make the thumbnail layout and the desktop background on the webpage more coordinated, you can avoid the thumbnails by adding access to the desktop properties and performing corresponding operations in the webpage component, such as by obtaining a blank area of the desktop and displaying the thumbnails to a blank area. Shortcuts and other sidebar programs conflict in interface layout.
- the content on the web page may also be a flash (interactive vector and web animation) animation or other object that can realize user interaction.
- the webpage can be automatically designated as a desktop background, and a function menu or a button for calling the ActiveDesktop to designate the webpage as a desktop background is also provided on the webpage. When the user selects a menu or a button, the webpage is designated as desktop.
- Several different web pages are also available for users to choose from.
- the provided webpage can be saved in the local computer device or stored on the remote server, and the user can access the webpage through a network protocol (such as ftp or http).
- a stand-alone desktop program is created to emulate an operating system desktop function, instead of an operating system desktop program, the program can intercept the operating system to display desktop messages and commands to simulate all functions of the operating system desktop.
- the implementation of the present invention is completed in the desktop program as described in Embodiment 1.
- a stand-alone desktop program is created, and the parent window or the owner window of the main window of the program is set as a desktop window, so that the main window of the program is located under the desktop shortcut, and the desktop background Above, integrated on the desktop.
- the implementation of the present invention is completed in the desktop program as described in Embodiment 1.
- the core idea is similar, except that the specific functions called when the desktop operation is different, and the appearance effect of the implementation can be adaptively adjusted for the 3D characteristics. Make the display style uniform.
- the invention can also be used for mobile devices or digital TV set-top boxes and the like. Since there is no mouse device, the operations thereof are mainly operated by a keyboard or a remote controller, and the thumbnail drawing, the background setting, the background zooming and panning, etc. The operation is similar to the previous embodiment.
- a keyboard or a remote controller Since there is no mouse device, the operations thereof are mainly operated by a keyboard or a remote controller, and the thumbnail drawing, the background setting, the background zooming and panning, etc. The operation is similar to the previous embodiment.
- One of ordinary skill in the art will readily appreciate that the specific code may vary when implementing the inventive arrangements on other different operating systems or computer devices, but the core idea is exactly the same.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Description
一种控制桌面背景的方法、 装置及系统
本申请要求于 2006 年 11 月 30 日提交中国专利局、 申请号为 200610162643. K 发明名称为"一种控制桌面背景的方法、 装置及系统"的中国 专利申请的优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及计算机设备显示控制领域,特别是涉及计算机设备桌面背景控 制领域。
背景技术
在计算机系统中, 为方便用户使用,把启动各种操作系统功能及应用程序 的快捷链接以图形方式表示出来,放置在计算机显示器的屏幕上显示, 并且能 够依据用户对这些快捷链接的操作来启动相应的应用程序或执行相应的功能, 快捷链接还可能用菜单项或者控件按钮为表现形式 ,它们可能直接展现于屏幕 的显示中, 也可能分类、 分级显示, 这个屏幕显示的画面称为计算机系统的桌 面, 同时, 还可以把图片设置成桌面背景, 使屏幕显示更丰富多彩。 桌面背景 占据了桌面的大部分区域,快捷方式绘制在桌面背景之上,合理的设置桌面背 景, 可以使桌面美观、 使用者心情愉快, 使计算机更加人性化。
目前桌面背景的控制方法主要是使用操作系统为用户提供桌面背景图片 替换程序。 如图 1 所示, 图片数据以"背景 2.jpg"文件的形式存储在本地磁盘 上, 具体位置在本地磁盘 "C: \我的文档\我的图片\我的桌面\ "目录下, "我的文 档,,、 "我的图片"和"我的桌面"分别是 C盘根下的第一、 二、 三级目录的目录 名, 在第三级目录 "我的桌面,,下, 包含有多个图片文件, 如果要将"背景 2.jpg" 设置为桌面背景, 就必须依次选择上述第一、 二、 三级目录, 逐级进入才能把 所需要的图片选中, 并设置为桌面背景。
例如, 在 windowsXP操作系统中, 要选择如图 1中所示的图片文件"背景 2.jpg"作为桌面背景, 需要先在桌面的右键快捷菜单中选择的菜单项的"属性" 项, 在打开的对话窗口中选择"背景"选项页, 再选择"浏览"按钮, 打开文件选 择对话框, 在对话框中依次选择并打开本地磁盘 D盘、 "我的文档"、 "文件"、 "图片 "和"我的桌面"目录, 然后在文件选择对话框中才能显示出的图片文件的 列表, 在列表中选择 "背景 2.jpg"文件, 选择"确定"按钮, 然后需要选择图片的 显示效果, 显示效果可以设置成平铺、 居中或者拉伸, 最后再选"确定"按钮, 把所选图片设置成桌面背景。
这种方法的缺点是:每次切换桌面背景时, 需要用户多次选择相应的目录 寻找图片文件, 步骤繁瑣, 效率低; 选择图片时, 通过显示属性对话框依据图 片文件名进行选择, 操作不直观; 当目录和文件较多时, 用户希望找到中意的 文件来作为背景时,需要用户逐一尝试,操作速度慢;将图片作为桌面背景时, 对于较大的图片可能会只显示图片的一部分,对于和桌面长宽比例差异较大的 图片,会造成图片显示发生明显变形,可见这种方式也不能很好的控制图片的 显示效果。
可见, 现有的桌面背景的控制方法存在操作效率低、 不直观、 不方便和不 能很好的控制显示效果的问题。
发明内容
本发明所要解决的技术问题是提供一种控制桌面背景的方法、 装置及系 统, 以解决现有技术中操作效率低、 不直观、 不方便和不能很好的控制显示效 果的问题。
为了解决上述技术问题, 本发明公开了一种控制桌面背景的方法,包括: 在桌面上设置链接图标,所述链接图标指向保存在存储单元中作为桌面背景的 文件;接收对所述链接图标的选择, 将所述链接图标所指向文件的内容设置成 桌面背景。 优选的, 所述链接图标为所指向文件的缩略图、符号图标或者与该 文件相关的文字及其组合。
优选的, 所述将文件内容设置成桌面背景采用如下步骤实现: 获取所述链 接图标所指向文件的内容; 将所述文件的内容显示在所述桌面背景上。
优选的,所述方法还包括,将所述桌面分成快捷方式区和空白区域,以及, 将所述链接图标设置在所述空白区域内。
优选的, 所述方法还包括, 设置桌面浮动窗口, 以及, 将所述链接图标设 置在桌面浮动窗口中。
优选的, 所述方法还包括,才 据所述文件内容的完整显示效果生成所述缩 略图, 或者, ^居所述文件内容显示效果的一部分生成所述缩略图。
优选的, 所述链接图标以固定的行列模式、 大小渐变模式或者层叠模式显 示。
优选的, 所述方法还包括, 当所述链接图标的数量大于桌面允许的显示数 量时, 设置所述链接图标为分页显示模式。
优选的, 所述方法还包括, 当所述链接图标的数量大于桌面允许的显示数
量时, 设置所述链接图标为滚屏显示模式。
优选的, 所述方法还包括,将所述链接图标设置为可以接收计算机指点设 备的翻页指令进行步进速度可调的滚屏操作的模式。
优选的, 所述方法还包括,将所述桌面背景显示内容设置为可以根据计算 机键盘或者计算机指点设备特定按键的指令进行切换的模式; 或者,将所述桌 面背景显示内容设置为可以接收所述计算机指点设备滚轮的滚动指令把所述 显示内容进行放大或缩小的模式; 或者,将所述桌面背景显示内容设置为可以 接收对所述桌面背景显示内容的局部的选择指令把所选择的局部显示内容放 大到整个桌面背景的模式; 或者,将所述桌面背景显示内容设置为可以接收在 所述背景上按下所述计算机指点设备滚轮并移动的指令进行移动所述桌面背 景显示内容的模式。
优选的,把所述显示内容缩小的模式是, 当所述显示内容缩小到预先设定 的阔值时, 采用自动渐变效果缩小直至其达到预设尺寸。
优选的 ,将所述文件的内容显示在所述桌面背景上是将所述文件的内容以 自动方式逐步放大显示在桌面背景上直至其达到预设尺寸。
优选的, 采用下述方法确定所述桌面背景显示内容显示模式: 首先计算显 示内容高宽比与桌面窗口高宽比的实际高宽比差异系数,以设定的临界高宽比 差异系数为分界线,依据实际高宽比差异系数和设定的临界高宽比差异系数的 大小关系来确定采用的背景图片放缩显示模式。
优选的, 所述链接图标所指向的文件是图片文件、 动画文件、 音频文件、 视频文件、 网页或者文本文件。
优选的 ,对所述链接图标的选择是在所述链接图标上单击计算机指点设备 按键、双击计算机指点设备按键、滚动计算机指点设备的滚轮或者按下键盘的 特定键。
本发明还提供了一种控制桌面背景的装置, 包括:
链接图标设置单元, 用于在桌面上设置链接图标, 所述链接图标指向保存 在存储单元中作为桌面背景的文件;
桌面背景设置单元, 用于接收对所述链接图标的选择,将所述链接图标所 指向文件的内容设置成桌面背景。
优选的, 所述桌面背景设置单元还包括: 文件内容获取单元, 用于获取被 选择的所述链接图标所指向文件的内容; 文件内容显示单元, 用于将所述文件
的内容显示在所述桌面背景上。
优选的, 所述装置还包括: 桌面分区单元, 用于将桌面分成快捷方式区和 空白区域; 并且, 所述链接图标设置单元将链接图标设置在所述空白区域内。
优选的, 所述装置还包括: 桌面浮动窗口设置单元, 用于设置桌面浮动窗 口; 并且, 所述链接图标设置单元将所述链接图标设置在桌面浮动窗口中。
优选的, 所述链接图标显示为所述图片文件的缩略图、符号图标或者文字 标志及其组合。
优选的, 所述装置还包括: 第一缩略图生成单元, 用于才 据所述文件内容 的完整显示效果生成所述缩略图; 或者, 第二缩略图生成单元, 用于 据所述 文件内容显示效果的一部分生成所述缩略图。
优选的,所述链接图标以固定行列模式、大小渐变模式或者层叠模式显示。 优选的, 所述装置还包括: 分页模式设置单元, 用于当所述链接图标的数 量大于桌面允许的显示数量时, 将所述链接图标设置为分页显示模式。
优选的, 所述装置还包括: 滚屏模式设置单元, 用于当所述链接图标的数 量大于桌面允许的显示数量时, 将所述链接图标设置为滚屏方式显示模式。
优选的, 所述装置还包括: 翻页模式设置单元, 用于将所述链接图标设置 为可以接收计算机指点设备的翻页指令进行步进速度可调的翻页操作的模式。
优选的, 所述装置还包括: 第一背景模式设置单元, 用于将所述桌面背景 显示内容设置为可以根据计算机键盘或者计算机指点设备特定按键的指令进 行切换的模式; 或者, 第二背景模式设置单元, 用于将所述背景显示内容设置 为可以接收所述计算机指点设备滚轮的滚动指令把所述显示内容进行放大或 缩小的模式; 或者, 第三背景模式设置单元, 用于将所述桌面背景显示内容设 置为可以接收对所述桌面背景显示内容的局部的选择指令把所选择的局部显 示内容放大到整个桌面背景的模式; 或者, 第四背景模式设置单元, 用于将所 述桌面背景显示内容设置为可以接收在所述背景上按下所述计算机指点设备 滚轮并移动的指令进行移动所述桌面背景显示内容的模式。
优选的,把所述显示内容缩小的模式是, 当所述显示内容缩小到预先设定 的阔值时, 采用自动渐变效果缩小直至其达到预设尺寸。
优选的 ,将所述文件的内容显示在所述桌面背景上是将所述文件的内容以 自动方式逐步放大显示在桌面背景上直至其达到预设尺寸。
式: 首先计算显示内容高宽比与桌面窗口高宽比的实际高宽比差异系数, 以设 定的临界高宽比差异系数为分界线,依据实际高宽比差异系数和设定的临界高 宽比差异系数的大小关系来确定采用的背景图片放缩显示模式。
优选的, 所述文件是图片文件、 动画文件、 音频文件、 视频文件、 网页或 者文本文件。
优选的 ,对所述链接图标的选择是在所述链接图标上单击计算机指点设备 按键、双击计算机指点设备按键、滚动计算机指点设备的滚轮或者按下键盘的 特定键。
本发明还提供了一种控制桌面背景的系统, 包括计算机显示器, 用于显示 桌面, 其特征在于, 还包括,
桌面背景控制装置, 包括下列单元:
链接图标设置单元, 用于在桌面上设置链接图标, 所述链接图标用于指向 作为桌面背景的文件;
桌面背景设置单元, 用于接收对所述链接图标的选择,将所述链接图标所 指向的文件内容设置成桌面背景。
优选的, 所述链接图标显示为所述文件的缩略图、符号图标或者文字标志 及其组合。
优选的, 所述文件是图片文件、 动画文件、 音频文件、 视频文件、 网页或 者文本文件。
与现有技术相比, 本发明具有以下优点:
1、 切换桌面背景时, 通过选择桌面上的链接图标直接设置桌面背景, 不 需要用户打开显示属性设置对话框,也不需要多次选择相应的目录寻找要设置 的文件, 通常只需链接图标上一次点击即完成桌面背景的设置, 简化了操作, 节约了时间, 操作步骤少, 效率高, 使用方便。
2、 可以在桌面空白区域显示供选择的缩略图, 提高了桌面背景闲置区域 的利用效率, 丰富了桌面的功能。
3、 需要设置背景时, 提供了一系列文件的缩略图供选择, 可以使用户预 先看到备选文件的缩略图,可以快速找到自己喜欢的背景文件, 无需依据文件 名进行选择, 操作直观。
4、 可以接收计算机指点设备对桌面背景显示内容的操作, 可以对桌面背 景显示内容进行切换、 放大、 缩小、 局部放大或者移动, 能够很好的控制桌面
背景显示内容的显示效果。
5、 以设定的显示内容与屏幕的临界高宽比差异系数为分界线, 确定桌面 背景显示内容的显示方法, 能够大幅改善桌面背景的显示效果, 满足用户对显 示效果的更高要求。
6、 对缩略图提供步进速度可调的翻页操作, 结合翻页按钮, 为用户提供 了易于使用的和方便快速的缩略图浏览方法。
7、 由缩略图切换到桌面背景及由桌面背景切换到缩略图过程均可提供渐 进交互过程响应, 充分展现出桌面背景和缩略图界面间的整体有机联系, 能够 给用户以浑然一体的感受。
附图说明
图 1是本地磁盘图片文件存储路径图;
图 2是本发明的桌面布局示意图;
图 3是本发明的对桌面的子类化流程图;
图 4是本发明的方法实施例 1流程图;
图 5a是本发明的图层位置图示例 1 ;
图 5b是本发明的图层位置图示例 2;
图 5c是本发明的图层位置图示例 3;
图 6本发明的方法实施例 2流程图;
图 7a是本发明的缩略图显示在桌面空白区域的效果图;
图 7b是本发明的缩略图显示在桌面浮动窗口中的效果图;
图 8是本发明的根据鼠标的位置判断对应缩略图的方法流程图; 图 9是本发明的根据鼠标单击设置桌面背景的方法流程图;
图 10是本发明的方法实施例 3流程图;
图 11是本发明的装置实施例框图;
图 12是本发明的系统框图。
具体实施方式
为使本发明的上述目的、特征和优点能够更加明显易懂, 下面结合附图和 具体实施方式对本发明作进一步详细的说明。
本发明的实施例可以应用于使用 windowsXP操作系统的计算机设备中, 但不局限于于此,本领域的专业人员容易理解,本发明可以应用于任何具有显 示器和处理器的计算机设备中。 另外, 诸如 PDA、 手机、 数字电视机顶盒、
笔记本电脑或者 PC机均可以被视为一种可以应用本发明的计算机设备。
以 windowsXP为例, 桌面的一种典型布局是如图 2所示的桌面窗口 101、 桌面背景 102和快捷方式 103 , 桌面背景被分为 2个主要区域, 分别是快捷方 式区域 104和空白区域 105 , 为了表示快捷方式区域 104与空白区域 105区域 的范围,在图中示意性的绘制了一条并不存在的区域分界线 106以方便本文描 述, 图中还包括, 任务栏 107用于负责任务调度和切换, "开始 "按钮 108用于 以菜单模式调出更多启动链接。桌面背景 102是覆盖于桌面窗口 101之上的一 个图片(也可以由用户取消图片而代之以单色背景)。 对于大多数用户而言, 该 桌面上的图标数量所占据的空间不会超过桌面空间总面积的 1/3。
某些操作系统也支持多桌面切换。例如,一种 linux操作系统有 4个桌面, 可以由用户任意切换, windowsXP 虽然没有直接提供多个桌面, 但提供了创 建多个桌面的编程接口。
对于桌面的视觉效果的改进,操作系统供应商以及第三方软件商都做了不 懈努力, 如 3D桌面窗口 (使用 3D方式进行桌面窗口的布置, 提高了用户的 使用感受) 或者桌面插件辅助工具 (如 "Yahoo! Widgets Engine"、 "Google Desktop"等提供的桌面时钟、 桌面新闻阅读器、 桌面搜索)等, 它们为提升计 算机的用户使用体验做出了贡献, 却缺乏桌面背景的快速高效设置的解决方 案。
另夕卜,在第三方软件中还有一类虚拟桌面软件,这类软件的特点是可以支 持创建多个桌面。本文中所述的桌面也包括这种虚拟桌面的情况。虚拟桌面既 可能是独立的完整的操作系统桌面控制功能的替代程序 ,也可能是基于现有操 作系统桌面功能的功能扩展程序。
下面介绍对 windowsXP操作系统缺省桌面进行子类化, 并实施本发明的 过程。
在现有的 windowsXP操作系统中, 桌面没有提供对鼠标在桌面背景区域 的选择和滚轮操作的响应,要实施本发明,可以通过接管桌面对消息的响应过 程, 然后使用代码根据鼠标的操作进行响应, 控制桌面的输出效果。 本发明通 过对桌面的子类化完成对桌面的人机交互消息的截取,经过对消息进行分析过 滤后, 在收到特定消息时调用 API (应用程序编程接口)来实现对桌面显示内 容的操作和对桌面显示过程的控制。本发明通过对桌面窗口的跨进程子类化完 成对桌面的控制,截获桌面窗口的消息, 实现在桌面背景区域上的显示控制以
及交互操作。 对桌面的子类化流程图如图 3 , 具体包括: 首先安装系统钩子函 数, 并向资源管理器发送子类化消息, 该消息触发系统钩子函数, 操作系统自 动将包含钩子函数的 DLL (动态链接库)加载到资源管理器进程, 接着执行 钩子函数, 系统钩子函数响应消息, 完成桌面窗口的子类化。 为了避免影响系 统性能,完成子类化操作后即可增加 DLL引用将 DLL保持在资源管理器进程 中, 取消该系统钩子。 至此完成桌面消息的拦截和处理代码与桌面的集成, 处 理代码可以接收桌面上用户的键盘、 鼠标或其它计算机指点设备的操作信息, 并对相应的消息作出响应。
参照图 4, 是本发明的方法实施例 1流程图, 包括:
步骤 501 , 在桌面上设置链接图标, 所述链接图标用于指向保存在存储单 元中作为桌面背景的图片文件。
为使叙述更为直观, 实施例中的桌面背景文件主要采用图片文件,链接图 标的外观主要采用缩略图,本领域技术人员应该理解,本发明所述背景文件及 链接图标并不局限于图片文件及缩略图。
根据用户预先指定的要设置成桌面背景的图片文件,获取到图片文件的链 接地址, 配合预先设置的显示样式生成链接图标, 把链接图标绘制到桌面上。 由于预先已经进行了对桌面的子类化操作, 可以通过对鼠标和键盘消息的处 理, 当判断出链接图标被选中或被操作, 可以由代码实现对操作的响应, 并进 行对应的处理。
要设置成桌面背景的图片可以是位于本地硬盘上的任意目录下,也可以是 指定的某个目录下的所有图片文件, 例如可以指定如图 1 所示的目录" C: \我 的文档 \我的图片\我的桌面\ "下的全部图片文件作为待设置的图片文件。 这些 图片文件来源可以是本地现有的, 也可以是从网络上下载到本地的緩存目录 的, 还可以是存储在网络上的。 存储图片文件的目录可能包含多级子目录, 是 否需要取得子目录中的图片文件可以由用户预先进行设置。指定图片文件的位 置可以有两种方法: 一是指定一个目录,在此目录中所有图片文件都是待设置 文件,二是指定目录下的某个图片文件作为待设置文件,也可以由两者组合起 来使用。 可以同时指定图片文件的多个来源。
根据用户指定的图片文件来源, 可以生成指向所述图片文件的链接图标, 所述的链接图标对象可以包含显示属性和指向属性,显示属性规定了链接图标 的显示样式, 它可以显示为图形、符号或者文字及其组合, 在显示样式上它也
可以是隐形显示的, 如显示为透明的, 在这种情况下, 虽然链接图标不可见, 但仍旧可以被用户选中或使用鼠标等计算机指点设备进行单击操作;指向属性 规定了链接图标所指向的图片文件的位置信息,位置信息可以是图片文件的路 径和文件名, 也可是其它类型的位置信息, 如 URL等。
链接图标可以有多个, 显示时可以作为一个图层放置在桌面上进行显示, 桌面可以看作是快捷方式层和桌面背景层叠加而成的,优选的,链接图标的图 层可以放置于桌面背景层之下。 以下列出若干种中可选的层次关系: 如图 5a, 是图层的位置图, 从上到下依次是: 快捷方式图标层、链接图标层和桌面背景 层,在这种方式下,桌面背景层可能被链接图标层与快捷方式层的图片所遮盖; 链接图标层也可以放置在最底层, 如图 5b所示, 从上到下依次是: 快捷方式 图标层、 桌面背景层和链接图标层,可以保证桌面背景层不被链接图标层的图 片所遮盖, 当背景图片占据整个桌面背景层时, 链接图标层被遮盖, 当背景图 片略小于整个桌面背景层时,链接图标层部分可见; 还可以另外设置一个链接 图标背景层, 用于作为链接图标的背景层, 当桌面背景层未设置背景图片时, 整个桌面的背景显示成链接图标背景层的图片作为背景, 如图 5c所示, 从上 到下依次是快捷方式图标层、 桌面背景层、链接图标层和链接图标背景层, 它 们可以分开设置,可以实现两者的同时显示,原桌面的桌面背景层的背景图片 覆盖在链接图标层和链接图标背景层上面, 桌面背景图片足够大时,链接图标 层和链接图标背景层因被完全覆盖而不可见。当链接图标层被覆盖或隐藏时可 以通过预先设置的命令, 激活或显示出来链接图标层供用户操作。可选的层次 控制方法:在桌面上绘制时可以通过代码控制绘制的先后次序来表现所需层次 关系,也可以将特定的层封装在界面元素如窗口中,再通过控制窗口的层次来 达到所需层次控制目标。
优选的,链接图标可以为所述图片文件的缩略图、符号图标或者文字标志 及其组合。 当显示为所述图片文件的缩略图时, 需要事先根据图片文件数据生 成图片文件的缩略图, 生成的方法可以是,调用操作系统提供的缩略图产生功 能,或者是重新写代码读取图片文件的数据,按照一定的采样算法得到缩略图 , 并把缩略图保存在链接图标的数据结构中,作为链接图标的一个属性值。这种 方式可以让用户方便的预览图片文件的大概内容,便于用户有目的的选择需要 的图片作为桌面背景。所述的链接图标也可以显示为特定的符号,如可以显示 为一个代表图像的符号,进一步,还可以显示成为一个代表图片文件类型的符
号。 如 GIF或者 JPG图片的图示标志等, 可以使用户识别出图片文件的类型 等信息。 当然链接图标也可以显示成一个文字标志, 如显示成"图片"等的文字 信息。 链接图标还可以是透明的, 在视觉上并不显示出来, 但实际上还是占据 了一定的显示空间 , 这种方式可以防止链接图标对桌面背景的遮挡。
优选的,所述缩略图可以是所述图片文件的完整图像的缩略图或者图像的 一部分的缩略图。取完整图像数据形成缩略图时,可以在形成的缩略图中看到 整个图片的概况, 便于用户预览图片的大概内容, 但细节可能看不太清楚, 这 里也可以只取图片的一部分形成缩略图 ,这样可以更好的在缩略图中显示图片 中的细节; 取图片的一部分时, 可以取固定大小的图片的中心区域, 也可以取 图片的旁边的区域, 例如取图片的左上角的局部图片,可以取方形或者圆形的 局部图片均可。
链接图标的放置位置可以是桌面上的任何的位置。优选的,在 windowsXP 计算机操作系统中,快捷方式图标一般放置在桌面的左侧(因操作系统或用户 设置而异), 在这种情况下, 可以依据快捷方式图标占据的部分桌面把桌面分 成快捷方式区和空白区, 可以将本发明的链接图标放置在所述的空白区域内。 使用这种方式显示,链接图标和桌面快捷方式图标各自显示在不同的位置, 防 止两者互相覆盖或者互相交错, 视觉外观上也较为清晰。 优选的, 链接图标也 可以放置在任意窗口中, 为便于操作,放置在桌面浮动窗口中,在 windowsXP 中,典型的桌面浮动窗口有两种,一种是始终处于其它应用程序窗口的下面的 桌面子窗口, 另一种浮动窗口显示时可以处于顶层(也可以不处于顶层)但不 用的时候可以隐藏, 通过鼠标在屏幕边缘激活, 不会影响用户的正常工作, 在 屏幕边缘激活的窗口可以是缩小在边缘的窗口从边缘放大滑出的窗口,也可以 是直接在屏幕上显示出来的窗口。在操作系统执行"显示桌面"命令而自动把其 它应用程序窗口最小化时,被设置为桌面子窗口的浮动窗口和置于顶层或底层 的浮动窗口可以始终保持常态。浮动窗口在一些桌面工具中使用较为普遍, 比 如微软的 Vista操作系统以及 "Yahoo! Widgets Engine"、 "Google Desktop"都提 供的一些在桌面上运行的辅助工具, 如时钟程序、新闻浏览器、 邮件通知工具 等, 以及及时通讯工具如腾讯 QQ也都利用了桌面浮动窗口。 本实施例在采用 浮动窗口作为缩略图容器时,优选不占用工作空间的桌面子窗口形式的浮动窗 口, 可以预先设置一个或者多个窗口, 以 windowsXP操作系统为例, 可以通 过 Create Window (创建窗口)或 Create WindowEx (创建具有扩展风格参数的
窗口)系统函数在桌面上创建一个窗口作为桌面浮动窗口,该类桌面浮动窗口 也是整个桌面的一部分, 与普通的窗口不同, 从整体逻辑上看, 该类桌面浮动 窗口是桌面的一部分,在本实施例中把链接图标显示在浮动窗口中时, 既可以 把所有的链接图标显示在一个浮动窗口中,也可以显示在多个浮动窗口中,具 体的显示方式根据需要进行设置,并且浮动窗口可以由用户根据需要移动到桌 面的任意地方, 用户可以自主安排桌面的布置。 当然, 显示链接图标的浮动窗 口还可以最大化显示在整个桌面的背景上, 这样可以一次显示更多的链接图 标, 当链接图标的数量较多时, 用户不需要翻页操作就可以方便选择需要的链 接图标。也可以创建一个普通窗口作为连接图标容器,可以通过改造其属性的 方法使其具备上述桌面浮动窗口的特点。为了使链接图标的显示效果与桌面更 加协调, 可以将浮动窗口设置为无边框、 背景透明等风格, 更好的与桌面融合 起来。
优选的, 所述的链接图标可以显示为固定行列模式、 大小渐变模式或者层 叠模式。 当链接图标显示为固定行列模式时, 需要预先设置或获取显示区域的 范围, 并预先设置链接图标的显示尺寸, 当然, 为保持桌面显示的效果的一致 性,也可以使链接图标和桌面快捷方式图标的尺寸一样,也可以使链接图标的 尺寸略大一些,这样可以提供更大的链接图标便于用户识别和查看, 然后根据 显示区域的尺寸和链接图标的尺寸,增加一定的空白间隔,计算出每行应排列 的图标数量,逐行把链接图标显示出来, 采用这种模式显示可以便于用户浏览 每个链接图标, 并且链接图标之间没有相互的遮挡, 方便用户进行选择。链接 图标显示时也可以使用大小渐变的模式显示,在这种方式中, 当前被选中的链 接图标以放大的状态被显示,放大的尺寸可以根据具体的需要设定, 例如可以 设为链接图标原尺寸的 2倍,位于被放大显示的链接图标的周围的链接图标也 可以以略微小一些的尺寸放大(如是原来的 1.5倍)显示, 较远一些的其它的 链接图标保持原样不放大显示,这样使链接图标在显示上有过渡效果,视觉效 果较好, 也便于用户判断和选择, 同时, 还可以把放大的行为和计算机指点设 备的光标关联起来, 放大所述计算机指点设备的光标所在的位置的链接图标, 并随着光标的移动切换放大的链接图标,具体实施上可以采用操作系统的消息 机制拦截并获取光标的位置, 判断出这个位置上的链接图标, 并放大显示, 并 把周围的链接图标以较小的比例放大显示,这种方式可以使用户能更清楚的查 看待选择的链接图标的信息。 还可以使用层叠方式显示链接图标, 例如, 可以
将链接图标排列成为部分重叠的方式, 将链接图标排列成一个可以转动的环 形,需要选择链接图标时,可以使用计算机指点设备移动环形排列的链接图标, 使需要的链接图标旋转到最前面并选中 ,这种方式可以在占用桌面面积较小的 情况下放置比较多的链接图标供选择, 并有比较好的显示效果,缺点是由于排 在后面的链接图标被部分遮挡, 不能看到完整的图标。
优选的, 当所述的链接图标的数量较多时, 可以进行分页显示。 可以按照 用户预先设定的每页显示的数量进行控制,具体的控制方式和控制后的效果本 领域技术人员是可以实现和想到的, 在此不再敷述。
优选的,当所述每页需要现实的链接图标的数量大于当前显示区域所能容 纳的显示个数时,在当前页使用滚动屏幕方式显示更多的链接图标, 滚动屏幕 的操作可以由计算机指点设备 (如鼠标)的滚轮等设备来控制 , 也可以由键盘 的上下翻页键来控制。
优选的 , 在使用计算机指点设备的滚轮等设备进行当前屏幕的滚屏操作 时,滚动屏幕的步进速度可以根据计算机指点设备的光标在屏幕上的位置进行 动态调整, 具有可控性强, 步进效果直观的优点。
步骤 502, 接收对所述链接图标的选择, 将所述链接图标所指向的图片文 件设置成桌面背景图片。
按前述方法进行了对 windowsXP桌面窗口执行子类化操作后, 可以拦截 到计算机指点设备(如鼠标)在桌面上的操作及状态消息,通过分析状态消息, 当检测到特定的操作和状态时,可以触发程序代码进行预先自定的处理。例如, 当拦截到计算机指点设备的单击操作时,取得计算机指点设备的光标目前的坐 标, 并按照所述的链接图标的显示的位置进行判断, 判断计算机指点设备在哪 个链接图标上执行了单击操作,取该链接图标的指向属性,找到相应的图片文 件, 打开图片文件, 读取图片数据, 并把图片数据写到桌面背景上, 从而实现 了设置桌面背景的操作。当计算机指点设备光标的位置不在任一个链接图标上 时,把这个消息交给原来的桌面消息响应处理代码进行处理,这时可能是用户 点击了某个快捷方式图标。上述判断计算机指点设备进行的操作、取得图片文 件数据、把数据写到桌面上的操作过程也可以用另外的方式实现, 并不限于使 用上面的方法进行处理。
在本步骤中,也可以不是由用户进行链接图标的选择, 而是自动实现对所 述链接图标进行的选择, 例如在启动桌面时, 可以选择一个默认的链接图标,
并把它所指向的图片文件作为桌面背景;也可以根据预先保存的最后一次选择 的链接图标作为默认选择, 进而设置成桌面背景图片。
优选的,本步骤中将图片文件设置成桌面背景可以采用如下过程实现: 获 取所述链接图标指向图片文件的图像; 将所述图像显示在所述桌面背景上。在 实现的具体操作上可以采用多种方法,既可以是直接将图片文件的数据写入桌 面背景中; 也可以是设置一个图像緩存区, 把所述图像写入到緩存区, 再调用 系统功能生成当前桌面上除了桌面背景图片外的其他部分的图像,按照预定的 方式叠加到图像緩存区, 然后把图像緩存区的内容替换到桌面背景中; 本领域 技术人员容易理解,只要能实现将桌面背景设置成选择的图片文件的任何方法 均可以采用, 不限于上面两种方法。
优选的, 上述方法还包括, 接收计算机指点设备或者键盘的操作命令, 对 桌面的背景图片进行操作。本发明能够实现对桌面背景图片的各种显示效果的 控制操作, 包括对背景图片的切换、 放缩、局部放大和移动等, 这些控制操作 可以由用户使用, 丰富了背景图片的显示效果, 提高了背景图片的可控制度, 增加了桌面背景的美观程度。
优选的, 所述对桌面背景的操作可以是:
当按下计算机键盘的翻页键或者计算机指点设备的预先设定的特定按键 组合时, 把桌面背景图片进行切换。 当用户按下翻页键或特定^ ¾组合时, 经 过子类化操作后的桌面截取了消息的传递,通过程序判断,如果是预先定义的 切换背景的指令, 则调用相应的处理程序进行处理, 先取得当前的背景图片, 根据用户指令取得当前图片文件的下一个或上一个图片文件,读取图片文件的 图像数据, 将图像数据写入桌面背景, 实现图片的切换。 进一步的, 还可以在 取得要显示的图片文件时同时取出预先保存的上次把本图片文件设置成桌面 背景时的显示比例和显示位置等其它信息,可以按照上次的显示效果显示,这 样用户对于要显示的图片文件只需要设置一次显示效果,下次使用时就会自动 按照上次设置的方式显示, 不需要重复设置, 方便了用户的使用。 也可以采用 其它的具体方法实现上面的处理过程, 并不局限于上面所述的方法。
当滚动所述计算机指点设备滚轮时, 在桌面上放大或缩小所述背景图片。 桌面截取滚轮操作和当前光标所在的位置的消息, 经过程序判断,调用桌面背 景图片放缩功能程序,首先取得当前桌面背景所显示的图片文件的显示比例和 路径信息, 读取图片文件的图像数据, 按照用户命令放大或缩小图像, 将经过
处理的图像数据写入桌面背景,从而实现对桌面背景的放缩操作。也可以采用 其它的具体方法实现上述处理, 并不局限于上面所述的方法。
当选择所述背景图片的局部时,可以把所选择的局部图案放大到整个桌面 背景上, 在放大之前, 可以预先调整所选择的局部区域的范围, 使其宽高比和 桌面宽高比一致, 以使放大到整个桌面背景中后, 图片的显示不发生变形。
当在所述背景图片按下所述计算机指点设备滚轮并移动时,移动所述桌面 背景图片。
优选的, 在对桌面背景进行缩小操作时, 预设一个最小尺寸的阔值, 当缩 小的桌面背景图片到此阔值时, 自动循环若干次使桌面背景图片缩小显示到桌 面上的步骤, 自动缩小直至达到预设尺寸, 例如该预设尺寸可以设置等于链接 图标的尺寸,这种情况下,在执行该自动循环缩小过程时,还可以同时使图片中 心位置向着缩略图中心平移,使缩小的图片尺寸渐变到链接图标尺寸时图片中 心和链接图标中心重合, 这就模拟了图片自动飞入链接图标的效果; 类似的, 也可以应用自动缩小过程使背景图片最终消失在桌面中心或其它位置,也可以 改变中心平移规则及增加更多的中间尺寸实现更复杂的自动渐变缩小效果。这 种显示效果提高了用户的使用感受。
优选的 ,对所述链接图标的选择是在所述链接图标上滚动计算机指点设备 的滚轮,将所述文件的内容显示在所述桌面背景上是将所述文件的内容以自动 方式逐步放大显示在桌面背景上直至其达到某个预设尺寸或显示比例,比如: 接收到用户在当前桌面背景文件的链接图标 A相邻的链接图标 B上第一次推 动滚轮的放大指令, 得到链接图标 B所指向的文件内容, 将该文件内容首先 绘制在桌面上一个刚好覆盖在链接图标 B 的区域, 其初始位置大小与链接图 标相同, 然后重复移动绘制位置并放大重绘, 直至其最终绘制图片的中心和桌 面窗口中心重合, 并且所绘图片最大边尺寸为对应桌面窗口尺寸的 1/3 ,此后, 随着滚动放大操作的继续, 把图片文件以比前次更大的比例设置到桌面背景 上。 这样实现的效果就是: 当链接图标为桌面背景文件的缩略图时, 用户第一 次在某个链接图标上发出滚动放大指令时,用户会看到缩略图逐步放大飞到了 屏幕中央,实际上是该缩略图所对应的背景文件而不是缩略图本身被自动放大 同时平移到桌面背景中心。本领域技术人员因该明白,该自动放缩过程的起始 位置、 起始大小、 目标位置、 目标大小都是可以根据需要而做出变化的。
优选的, 所述计算机指点设备可以是鼠标、 指点杆、 轨迹球或者触摸板,
并且不限于这些设备。这些计算机指点设备可以通过通讯接口向计算机设备发 送操作指令, 实现对计算机设备的控制操作, 其中应用最广泛的是鼠标。
优选的 ,对所述链接图标的选择是在所述链接图标上单击计算机指点设备 按键、双击计算机指点设备按键、滚动计算机指点设备的滚轮或者按下键盘的 特定键。 例如, 可以是使用鼠标的左键或者右键的单击或双击命令等。
优选的, 设置桌面背景时, 除可以采用已有技术方案中的平铺、 拉伸、 居 中等模式, 以及把图片按宽度充满显示和按长度充满显示之外,本发明提出了 与图片及桌面窗口的高宽比的差异系数相关的智能充满方式,所述智能充满方 式是以设定的图片与桌面背景窗口的临界高宽比差异系数为分界线 ,依据实际 高宽比差异系数和设定的临界高宽比差异系数的大小关系来确定采用的背景 图片放缩显示模式。例如: 当图片文件和桌面窗口的实际高宽比差异系数不超 过临界高宽比差异系数时,将图片以纵向及横向均充满桌面窗口的拉伸方式显 示在桌面背景上;当图片文件和桌面窗口的实际高宽比差异系数大于临界高宽 比差异系数时,保持图片在放缩前后的高宽比不变,将图片按相对长边充满桌 面窗口的模式等比拉伸显示在桌面上。该方法的实施效果是桌面背景能够依据 不同的图片高宽比采用不同的缺省显示方式:当图片高宽比与桌面高宽比大致 相同时, 用户能够得到变形较小的图片充满桌面窗口的全屏桌面显示效果; 而 对于肖像等高宽比与桌面背景高宽比相比有很大出入的图片,则选择纵向充满 方式, 在屏幕左右侧保留空白区域, 从而保持图片的比例不变, 对于风景类宽 幅图片, 则选择横向充满模式, 在屏幕上下侧保留空白区域; 当图片文件和桌 面窗口的实际高宽比差异系数不超过临界高宽比差异系数时,还可以把图片文 件以短边充满模式放大显示在桌面背景上,其实施效果是: 通过舍弃长边的两 端的一部分换来等比的全屏显示效果,同时可以防止短边两侧出现空白影响显 示效果。 该方法的具体实现方法是:
设图片的高度和宽度分别是 hpic,wpic, 桌面的高度和宽度分别是 hdesk,wdesk, 临界高宽比差异系数 a,临界高宽比差异系数 a是可以由用户设 置的, 它表明了用户能够容忍的图片的变形程度。计算高宽比 Spic=hpic/wpic, Sdesk=hdesk/wdesk, 实际高宽比差异系数 m = abs(Sdesk - Spic)/ Sdesk, 如 果 m<=a, 表示图片的大小比例和桌面的大小比例相近, 图片在桌面上使用拉 伸显示的变形程度在用户的可容忍范围之内,将图片以纵向及横向均充满桌面 窗口的拉伸方式显示在桌面背景上,此时图片在横向和纵向的实际放缩倍数不
相等, 为不等比拉伸。 如果 m>a,表示图片的大小比例和桌面的大小比例差距 较大, 图片在桌面上使用拉伸显示的变形程度超过了用户的可容忍范围,此时 保持图片在放缩前后的高宽比不变,按相对长边充满桌面窗口的模式等比拉伸 显示: 如果 hpic/wpic,> hdesk/wdesk, 则按照图片纵向充满桌面为目标计算图 片的缩放比例为 hdesk/hpic, 然后以该缩放比例完成图片在桌面上的绘制, 此 模式通常被自动应用于竖向拍摄的肖像模式照片; 如果 hpic/wpic,<= hdesk/wdesk,则按照图片横向充满桌面为目标计算图片的缩放比例为 wdesk/wpic, 然后以该缩放比例完成图片在桌面上的绘制, 此模式通常被自动 应用于宽幅风景模式图片的显示。
另一种可选充满方法: 在 m<a时, 不采用全屏拉伸而采用短边充满方式, 其算法参考前述示例中 m>a时的判断方法可以轻易推出, 不再赞述, 此时短 边充满桌面窗口, 长边两端的部分由于超过屏幕而不可见,这种方式的优点是 可以通过舍弃长边的两端的一部分换来等比的全屏显示效果,由于图片与桌面 间的高宽比差异系数较小,被舍弃的部分所占比例相应的也较小,通常并不会 影响画面的整体性; 对于 m>a的情形, 仍然可以采用但并不限于前述 m>a的 长边充满模式。
作为对本实施例的另一个扩展实施例,链接图标不仅可以指向各种类型的 图片文件, 还可以指向各种多媒体文件, 例如, 动画文件、 音频文件、 视频文 件、 网页或者文本文件等多媒体文件, 当用户选择后, 可以在桌面背景上显示 相应的文件内容,对于需要媒体播放器才能展示其内容的文件, 自动调用相应 的媒体播放器程序或控件、 插件来播放。 播放时, 在桌面背景上播放, 例如, 通过在桌面上增加一个桌面窗口的子窗口,在该窗口中加载媒体播放器控件或 自行编写解码播放代码均可以在桌面背景上播放电影,这种方式可以在用户欣 赏电影的同时进行桌面操作。 作为一个扩展,也可以通过用户设置切换到弹出 窗口上进行播放。 类似的, 如对于 flash动画、 URL地址、 文本文件等, 都可 以用类似的方法把内容直接显示在桌面背景上,只不过对不同的文件类型可能 采用相应的展现组件或需要编写相应的代码。这种对多媒体文件的支持,丰富 了用户的选择范围, 增加了桌面的功能, 更加方便用户对媒体文件的调用。 需 要说明的是,对于除图片以外的其他类型的文件,其缩略图类型的链接图标图 标的生成方法也可以借用操作系统或支持该类型文件显示的组件,将其显示效 果截取下来,也可以依据其文件类型结构重新写代码读取文件的数据,按照该
类文件解码算法得到缩略图, 并把缩略图保存在链接图标的数据结构中,作为 链接图标的一个属性值。
为了方便从网络上下载图片,可以根据缺省或用户设置的保存在网络上图 片文件的 URL地址, 定时或在启动时检查网络上是否有新图片文件,如果有, 则下载新图片文件, 还可以将新图片文件以半透明的方式显示在桌面的最顶 层, 显示定时结束或用户点击特定区域后, 图片消失, 这种方式可以让用户看 到下载的最新图片文件的图像,便于进行后续的设置,好处在于通知用户的同 时不会干扰用户的工作。还可以把新下载的图片显示在整个桌面上或者是设置 在桌面上的桌面浮动窗口中。
本发明还可以使用鼠标指针在屏幕上的特定区域时的操作指令完成不同 操作, 例如: 以 9宫格方式进行命令的定义, 将设置桌面背景后的桌面空白区 域虚拟定义成 9宫格的区域, 为各个区域的鼠标操作消息指定相应的操作, 比 如: 在右侧格子内双击切换下一张桌面背景图片,在左侧格子内双击切换上一 张桌面背景图片,在中部格子内双击在充满和上一快照之间切换,在上部格子 内双击切换上一快照,在下部格子内双击切换下一快照。这样的好处是无需借 助额外的控制界面即可提供丰富的桌面背景快速调整的功能。作为扩展,也可 以指定类似的 "4宫格"、 "6宫格"或非标准区域划分来定义不同区域的指令响 应方法。
参见图 6, 是本发明方法实施例 2的流程图。
在本实施例中, 以 windowsXP操作系统为例, 本实施例中的链接图标显 示为图片文件的缩略图形式, 并将缩略图显示在桌面的空白区域, 和实施例 1 相比, 增加了有翻页和滚动控制, 以及桌面放缩、 平移控制, 具体包括如下步 骤:
步骤 701 , 划分出桌面的空白区域。
对于用户的实际使用的操作系统桌面,摆放在桌面上的快捷方式图标的数 量一般不多,且一般排列在桌面的左半部分, 而桌面的右半部分基本为空白区 域, 可以通过 windowsXP提供的接口调用功能取得空白区域的位置信息, 例 如可以得到最右边的一个快捷方式图标在桌面上的位置,进而推算出,右边空 白区域的宽度, 由任务条的位置和高度可以推算出空白区域的高度, 丛而得到 空白区域的位置。
屏幕空白区域与缩略图间距的设定。假定获取的桌面右侧可用空白区域宽
度为 wtotal, 高度为 htotal, 为了保持屏幕显示效果的美观, 需要设定桌面右 侧空白区域与缩略图绘制区域之间纵向和横向的间隔 wmargin, hmargin , 同时 也需要设定缩略图之间纵向和横向的间距 wdelta, hdelta,缩略图的总绘制区域 宽度为 wtotal - wmargin, 高度为 htotal - hmargin。 需要指出的是, 当桌面以不 同技术方案实现应用程序引导时,其不一定采用快捷方式图标的形式,也可以 采用分层、 分类的菜单、抽屉式界面等等, 但这些均不与本方法所述的获取空 白区域的方法相冲突。
随桌面上的快捷方式图标摆放位置不同, 空白区域所处的位置也有所不 同, 例如, 当快捷方式图标摆放在桌面的右边时, 空白区域可能在桌面的左边 部分, 在一些其它情况下, 空白区域也可能在桌面的中间或者上下半部分里。
步骤 702, 在桌面的空白区域设置缩略图。
根据用户预先设置的要设为桌面背景的图片文件, 得到图片文件的路径, 并提取图片文件的缩略图, 作为缩略图的属性。
对于缩略图的大小 , 可以由用户预先按照像素设置缩略图的大小设置。 在显示缩略图时, 由于受屏幕显示尺寸的物理区域限制,每屏可以显示的 缩略图数量是有限的,如果每页按物理区域大小计算出来的所能容纳的缩略图 的个数来显示, 则当缩略图较多时会需要进行翻页操作。可以由用户设置每页 显示的缩略图个数, 当该个数超过屏幕物理空间限制的每屏所能显示的个数 时, 通过提供滚动操作控制来代替进行翻页操作。
在缩略图的显示风格上, 可以由用户指定缩略图外边框显示效果, 比如, 使用带立体阴影边框、 浮雕突出效果等。
以 windowsXP为例, 这里以快捷方式图标排列于屏幕左侧为例来表述, 统计给定图片文件的总数, 按照下面的公式计算出每页显示的缩略图的行列 数:
nrows = (htotal-hmargin)/(hthumb+hdelta)
ncols = (wtotal- wmargin)/ ( wthumb+wdelta)
其中 nrows表示缩略图的行数 , htotal表示桌面空白区域的高度, hmargin 表示缩略图在纵向预留的空间大小, hthumb表示缩略图的高度, hdelta表示缩 略图之间的纵向间距。 ncols表示缩略图的列数, wtotal表示桌面空白区域的宽 度, wmargin表示缩略图在横向预留的空间大小, wthumb表示缩略图的宽度, wdelta表示缩略图之间的横向间距。并按缩略图总数与每页显示个数设定计算
出图片的分页总数, 计算公式为:
npages = npics/( nrows * ncols) + npics mod ( nrows * ncols)
其中 npages表示缩略图的分页数, npics表示图片的数量, nrows表示每 页缩略图的行数, ncols每页缩略图的列数。
本实施例给出的行列数设定方法只是可选的一种方案,并非出于限制目的 而列出。
然后在桌面的空白区域绘制一页缩略图,数量不足一页时,仅绘制实际个 数的缩略图, 超过一页时, 只显示 1页, 将翻页控制机构置于边缘以便用户执 行翻页控制, 翻页控制机构可以是显示为 1-n的带链接功能的数字, 也可以加 上数字输入框用于输入要显示的页码, 以及上下一页、最前最后一页的跳转链 接, 也可以是常规分页标签(如 windows的选项卡控件 )以及其他可以用于分 页控制的界面元素。
参见图 7a, 是缩略图显示在桌面空白区域的效果图, 桌面背景 801被分 为 2个主要区域, 分别是快捷方式区 804与缩略图区域 805 , 快捷方式区域用 于原有快捷方式 803的显示, 缩略图 802显示于缩略图区域 805, 还包括翻页 控制按钮 806 , 和在一页内进行滚动控制的滚动条 807 , 翻页控制按钮 806与 滚动条 807的外观与可见性可依据用户习惯进行设置。
在 windowsXP中采用了一种由鼠标控制屏幕显示滚动的方法: 当用户按 下鼠标中键后, 鼠标指针所在位置会显示一个滚动指示图标, 此时, 用户将鼠 标在该图标上下左右移动时,被理解为自动执行滚动操作,距离该图标距离越 远, 则滚动速度越快。该功能在用户再次操作中键之前或者鼠标指针回到滚动 指示图标附近前,会一直保持连续运转不停,这种模式导致滚动总量控制相当 困难, 实际很少得到用户认可。本发明则将鼠标的滚轮滚动动作与鼠标所在屏 幕位置关联来提供人性化的响应 ,相比现有技术的鼠标当前位置与滚轮按下时 的位置的距离关联来决定滚动速度的方法, 本发明所揭示的方法具有可控性 强, 效果直观的特点。
在本实施例中 ,在缩略图模式下按住鼠标滚轮移动鼠标被设计成平滑移动 缩略图列表的模式, 而滚动鼠标滚轮则被定义为列表滚动操作, 列表滚动的具 体方法是: 在鼠标滚轮滚动时, 根据鼠标指针在桌面(类似的也可将该技术应 用至其它窗口) 的 Y座标和桌面窗口总高度来计算滚动的步进量, 依据该步 进量来调整可见的缩略图并完成绘制刷新。设定在靠近顶端时, 用户执行滚轮
翻页操作时被设置为整页更新,在桌面窗口最下方区域执行类似操作时则被设 置为以一行为步进滚动单位,鼠标在纵向其它位置的操作响应步进数量则按比 例内插换算, 其计算公式为: 假定桌面窗口顶部 Y坐标为 0, 底部的 Y坐标 为 y, 鼠标指针在底部时滚动步进量为 tl (为 1或由用户指定), 鼠标指针在 顶部时滚动步进量为 t2 (可以为整页所能包含的行数也可以由用户指定)则当 鼠标指针在屏幕上的 Y坐标为 X时, 对应的步进量应该为 (t2-tl ) /y* ( y-x )。
步骤 703, 接收用户对缩略图选择, 将所选缩略图指向的文件内容设置为 桌面背景。
当用户在桌面上的缩略图列表中看到自己要选择的图片的缩略图后,单击 缩略图, 将缩略图指向的图片文件设置为桌面背景。
获取用户选择的缩略图时,可以通过截取鼠标的消息, 并经过计算得到用 户选取的缩略图的索引号,这里的索引号是每个缩略图的编号,按照索引号找 到对应的缩略图,取出缩略图的指向属性,指向属性中保存了图片文件的目录 路径和文件名信息,然后读取图片文件的数据,写入一个桌面背景数据緩冲区, 使用智能充满方式对图片进行处理, 实现设置桌面背景的功能。
另外, 当用户把鼠标放置在要选择的缩略图上, 向前滚动鼠标滚轮时, 系 统截取到鼠标的光标位置和滚轮操作, 判断出是在缩略图上进行的滚动操作, 调用相应的处理程序, 处理程序取得位于光标下的缩略图的索引号,进而取得 缩略图指向的图片文件,并把图片文件以自动方式逐步放大显示在桌面背景上 直至其达到某个预设尺寸或显示比例, 比如: 接收到用户在当前桌面背景文件 的链接图标 A相邻的链接图标 B上第一次推动滚轮的放大指令, 得到链接图 标 B所指向的文件内容, 将该文件内容首先绘制在桌面上一个刚好覆盖在链 接图标 B 的区域, 其初始位置大小与链接图标相同, 然后重复移动绘制位置 并放大重绘, 直至其最终绘制图片的中心和桌面窗口中心重合, 并且所绘图片 最大边尺寸为对应桌面窗口尺寸的 1/3 , 此后, 随着滚动放大操作的继续, 把 图片文件以比前次更大的比例设置到桌面背景上。这样实现的效果就是: 当链 接图标为桌面背景文件的缩略图时,用户第一次在某个链接图标上发出滚动放 大指令时, 用户会看到缩略图逐步放大飞到了屏幕中央, 实际上是该缩略图所 对应的背景文件而不是缩略图本身被自动放大同时平移到桌面背景中心。这样 的响应方式将背景图片从缩略图状态切换到全屏背景的过程和用户交互过程 有机的结合起来, 既增强了设置过程的可控性, 又能通过逐步放大的过程给人
以美的享受。 这里向前滚动滚轮代表放大, 仅是可选的一种约定。
在上面所述的背景图片的绘制中 ,可以在从緩冲区向桌面填充时控制图片 的比例和显示区域而不是在图片写入緩冲区时调整,也可以不把图片文件的数 据写入緩冲区内, 而是直接写到桌面背景中去,这样的优点是减少了处理的步 骤, 但执行以下所述的步骤 705时速度可能会比较慢, 效率低。
步骤 704, 接收用户的桌面背景放缩作指令, 将桌面背景图片进行放大或 缩小。
设置好桌面图片后, 以充满桌面的方式显示完整图片的时, 由于桌面可视 面积的限制,画面的细节看的不是太清楚,如果所用的背景图片分辨率比较高 , 用户可以选取图片的一个局部,桌面系统自动把这个图片的局部放大并充满桌 面背景,这样可以更好的调整桌面背景的显示样式,给用户更多的调整显示效 果的选择, 使用上更加人性化。
当用户在桌面背景图片上使用按住鼠标左键移动选择了桌面背景图片的 一个局部时, 系统取得鼠标的当前位置和动作, 经过判断为选择背景图片局部 的操作后,通过计算得到用户鼠标选择时的左上角和右下角的坐标得到选择的 范围,依据这个范围以及当前桌面的显示比例及范围,可以得到被选择的局部 图片的数据,将该局部图片数据写入桌面背景緩冲区中, 并以全屏显示该局部 图片数据为目标调整显示的比例, 然后替换到当前桌面的背景中,这样即实现 了桌面背景的指定区域局部放大操作。 如果用户选择的区域中有快捷方式图 标, 则不对背景图片进行处理,把消息传递给原处理程序处理选中的快捷方式 图标。
在上面的过程中,还可以将得到的选择的范围进行调整,使其宽高比和桌 面宽高比一致,得到调整后的选择范围得到局部图片的数据,进行后续的处理, 以^部图片放大到整个桌面背景后 , 图片的显示不发生变形。
在本步骤中,对背景图片进行放大和缩小的具体操作是, 用户在桌面背景 图片上, 滚动鼠标的滚轮, 系统截取到鼠标光光标的位置和滚轮的操作, 调用 相应的程序,对桌面背景中的图片进行按比例的放大或缩小, 然后重新绘制背 景图片。
在对桌面背景进行缩小操作时,预设一个最小尺寸的阔值, 当缩小的桌面 背景图片到此阔值时, 自动循环若干次使桌面背景图片缩小显示到桌面上的步 骤, 自动缩小直至达到预设尺寸, 例如该预设尺寸可以设置等于链接图标的尺
寸,这种情况下,在执行该自动循环缩小过程时,还可以同时使图片中心位置向 着缩略图中心平移,使缩小的图片尺寸渐变到链接图标尺寸时图片中心和链接 图标中心重合, 这就模拟了图片自动飞入链接图标的效果; 类似的, 也可以应 用自动缩小过程使背景图片最终消失在桌面中心或其它位置,也可以改变中心 平移规则及增加更多的中间尺寸实现更复杂的自动渐变缩小效果。
本发明还提出了对桌面背景图片进行平移的方法:在桌面背景图片以大于 缩略图的大小显示在桌面窗口上时,用户通过按住特定的键盘组合或鼠标键组 合,对桌面背景图片的显示位置和区域进行调整。对于一个以小于全屏的模式 显示的桌面背景,该方法显示效果是图片在桌面上的整体位置移动,对于已充 满或超过桌面全屏大小显示的桌面背景, 桌面只能展示该图片的局部, 利用该 方法操作显示效果是在桌面上可以灵活地调整在桌面窗口范围所展现图片的 指定部分。
对于分辨率较高的图片而言,本发明无需启动外部图片浏览软件而直接在 桌面上提供类似于图片浏览器的自由放缩与平移操作,能够充分满足用户在桌 面上对于图片细节或者某些主体对象的欣赏需求。
本发明还可以实现在缩略图区域直接进行文件的相关操作, 例如: 通过对 键盘、 鼠标选择区域的判定, 可以得到选择的缩略图列表, 根据缩略图列表取 得对应的图片文件的列表, 复制所述图片文件到系统的剪贴板中, 然后可以使 用相关的文件操作 API即图片文件执行与普通文件类似的选择、 剪切、 复制、 粘贴、 移动等操作, 该方法的操作效果可以结合操作系统的典型用户界面, 比 如鼠标右键激活的文件操作菜单等,同时还可与操作系统文件管理器进行无缝 的整合操作, 以 windowsXP为例, 在缩略图界面执行的复制操作, 再打开资 源管理器, 进入任意目录可以执行粘贴操作, 把图片文件复制到目标目录中。 在实现图片文件的操作时可以调用系统的 API的 OpenClipboard函数打开剪贴 板,使用 SetClipboardData 函数设置要复制的文件,具体实施时, 对于不同操作 系统的具体实现可能有所区别 , 本领域一般技术人员容易理解。
下面对本实施例中的若干细节做更进一步的说明。
在本实施例中, 才 据鼠标的位置判断对应缩略图的具体实现方法如图 8 所示,具体包括:预先设置一个索引号全局变量用于记录当前缩略图的索引号, 当鼠标的光标在桌面上移动时, 可以通过截取 windowsXP的消息传递得到鼠 标在当前桌面上的坐标位置,通常是一个坐标值, 为了判断鼠标位于哪个缩略
图上, 初始化索引号全局变量, 然后使用 windowsXP提供的桌面对象的方法 调用得到所有缩略图, 循环取每个缩略图, 第一次先取第一个缩略图, 计算出 缩略图的位置,根据前面得到的鼠标的位置判断鼠标是否位于缩略图上,如果 不在, 取下一个缩略图, 再进行计算和判断, 直到循环完所有的缩略图, 如果 鼠标在某一个缩略图上, 则认为用户选择了此缩略图为当前缩略图,设置索引 号全局变量的值为此缩略图的索引号,如果鼠标不在任何一个缩略图上, 则认 为用户未选择缩略图,不加处理,将消息传回 windowsXP系统,由 windowsXP 系统做其它的响应和处理。 按照 windowsXP常规操作方法, 可以结合 shift、 Ctrl等^ ¾组合以及鼠标框选对多个缩略图进行选择, 并可以使用粘贴、 复制 等功能, 例如, 在资源管理器中, 选择多个图片文件, 并选择复制功能, 把鼠 标移到桌面上, 选择粘贴功能, 系统截取到此消息, 进行下面的处理, 将被选 择的图片文件复制到预先指定的桌面背景图片文件默认目录里,并生成缩略图 放置在桌面上, 用户可以点击缩略图进行桌面背景设置; 也可以不把图片文件 拷贝到桌面背景图片文件默认目录里 ,直接在桌面上设置指向选中的图片文件 的缩略图供用户点击。
通过图 8的方法能够得到鼠标当前位置对应的缩略图,为进一步进行对缩 略图执行其它操作提供了前提。
在本实施例中, 根据鼠标单击设置桌面背景的具体实现方法如图 9所示, 具体包括: 当用户在桌面上的某个缩略图上进行单击操作时, 首先截取到鼠标 的单击操作消息,取当前鼠标所在位置,根据上述图 8中的方法获得鼠标位于 的哪个缩略图之上, 得到用户选择的缩略图, 判断缩略图对象是否为空, 通过 判断可以知道缩略图指向的图片文件是否存在,避免发生取不到图片文件的问 题, 如何缩略图对象为空, 结束程序, 如果缩略图对象有效, 从其属性中得到 指向的图片文件的路径和文件名 ,判断所取得的图片是否是当前桌面背景上已 经设置的图片, 若是, 结束程序, 若否, 读取图片文件的数据写入预先设置的 图片緩存区 bmpl中,刷新桌面窗口的显示,进入桌面窗口的自定义绘制过程, 如步骤 1005至步骤 1010所述: 利用系统提供的 CreateCompatibleDC (创建内 存设备上下文)函数创建桌面兼容的设备上下文 hdcMem , 通过 CreateCompatibleBitmap (创建设备兼容内存位图 ) 创建内存图像緩存 bmpMem, 通过 SelectObject (选择对象到设备上下文)将 bmpMem加载到 hdcMem中, 将图片緩存区 bmpl 中的图片数据通过 BitBlt (位图拷贝) 函数
拷贝到 hdcMem中, 通过 CallWindowProc (调用窗口处理过程)调用桌面窗 口的原有处理过程 WM PAINT (绘制消息 ) 消息, 将 hdcMem作为参数, 绘 制桌面原有内容(包括快捷方式图标等), 通过 BitBlt (位图拷贝) 函数将 hdcMem中的绘制的内容拷贝到桌面窗口的 DC (设备上下文) 中, 完成桌面 背景的设置及显示。 需要说明的是, 步骤 1005至步骤 1010也是桌面窗口的自 定义绘制流程, 每次桌面窗口需要刷新显示时, 系统自动调用步骤 1005至步 骤 1010。
在上述方法中, 链接图标还可以显示成符号标志或者文字标志及其组合。 通过上述方法, 实现了接收用户选择的缩略图, 并把缩略图指向的图片文 件设置成桌面背景的过程,这里采用先在緩存区绘制背景图, 然后再把緩冲区 的图像数据复制到桌面背景中的方法,可以加快桌面背景的其它相关操作的速 度。本实施例中,也可以采用直接把图片文件的数据复制到桌面背景上的方法。 在本实施例中, 其它对背景图片的相关操作如放缩、 平移等, 也可以共用同一 緩存区, 以用最少的内存占用达到加快操作速度的目的。
参见图 10, 是本发明方法实施例 3的流程图。
本实施例和本发明的方法实施例 2的主要区别在于,本实施例将缩略图显 示在桌面的浮动窗口中, 除提供缩略图控制桌面功能外, 还提供其它功能, 步 骤中和实施例 2的重复部分不再详细描述。
具体包括如下步骤:
步骤 1101 , 在计算机桌面上设置浮动窗口。
如,通过 windowsXP提供的窗口函数的实现在现有桌面上增加浮动窗口。 本实施例中的浮动窗口, 除了提供通过缩略图切换桌面背景外, 还通过 windowsXP 的选项卡控件对界面和功能进行分组, 在第一个选项卡下实现缩 略图切换桌面背景, 在另一个选项卡下实现"邮件管理"功能, 类似的, 还可以 在该浮动窗口的不同区域实现不同功能,在这种情况下,本发明只是作为一个 综合应用系统的一个局部要素来实施。
步骤 1102, 在浮动窗口的桌面控制区域设置缩略图。
把链接图标显示在浮动窗口中,既可以把所有的链接图标显示在一个浮动 窗口中, 也可以显示在多个浮动窗口中, 具体的显示方式 ^居需要进行设置, 并且浮动窗口可以由用户才 据需要移动到任意位置。
步骤 1103 , 接收用户对缩略图的选择, 判断出选择的缩略图的索引号。
步骤 1104 , 将用户选择的缩略图指向的图片文件设置成桌面背景图片。 参见图 7b, 是缩略图显示在桌面浮动窗口上的效果图, 浮动窗口 8205显 示在桌面背景 8201上, 快捷方式区 8204用于原有快捷方式 8203的显示, 浮 动窗口 8205包括了缩略图控制桌面选项卡 8208和邮件管理选项卡 8209, 缩 略图 8202显示在选项卡 8208控制的区域, 该区域还包括翻页控制按钮 8206, 和在一页内进行滚动控制的滚动条 8207, 翻页控制按钮 8206与滚动条 8207 的外观与可见性可依据用户习惯进行设置, 邮件管理选项卡 8209控制邮件管 理功能区域。
在本实施例中 , 还可以实现用户使用鼠标的滚轮在缩略图上进行滚动操 作,把缩略图所对应的图片文件用自动渐变效果以一个较小的尺寸显示在桌面 背景上, 用户继续滚动滚轮, 可以将桌面背景图片放大, 给用户的使用感觉是 从缩略图放大得到的桌面背景, 操作较为流畅, 提高了用户的使用感受; 优选 的, 在对桌面背景进行缩小操作时, 预设一个最小尺寸的阔值, 当缩小的桌面 背景图片到此阔值时, 自动循环若干次使桌面背景图片缩小显示到桌面上的步 骤, 自动缩小直至达到预设尺寸, 例如该预设尺寸可以设置等于链接图标的尺 寸,这种情况下,在执行该自动循环缩小过程时,还可以同时使图片中心位置向 着缩略图中心平移,使缩小的图片尺寸渐变到链接图标尺寸时图片中心和链接 图标中心重合, 这就模拟了图片自动飞入链接图标的效果; 类似的, 也可以应 用自动缩小过程使背景图片最终消失在桌面中心或其它位置,也可以改变中心 平移规则及增加更多的中间尺寸实现更复杂的自动渐变缩小效果。这种显示效 果提高了用户的使用感受。
参见图 11 , 是本发明的装置实施例框图。 包括:
链接图标设置单元 1201 , 用于在桌面上设置链接图标, 所述链接图标指 向保存在存储单元中作为桌面背景的图片文件;
桌面背景设置单元 1202, 用于接收对所述链接图标的选择, 将所述链接 图标指向的图片文件设置成桌面背景。
根据用户指定的图片文件, 链接图标设置单元 1201生成指向所述图片文 件的链接图标, 所述的链接图标包括显示属性和指向属性,显示属性规定了链 接图标的显示样式,它可以显示为缩略图、符号或者文字的,或者三者的组合, 它也可以是隐形的显示的;指向属性规定了链接图标所指向的图片文件的指向 信息。 链接图标设置单元 1201将生成后的链接图标显示在桌面上。
桌面背景设置单元 1202拦截到计算机指点设备(如鼠标)在桌面上的操 作及状态消息, 通过分析状态消息, 当检测到特定的操作和状态时, 可以触发 程序代码进行预先自定的处理。例如,当拦截到计算机指点设备的单击操作时, 取得计算机指点设备的光标目前的坐标,并按照所述的链接图标的显示的位置 进行判断, 判断计算机指点设备在哪个链接图标上执行了单击操作,取该链接 图标的指向属性, 找到相应的图片文件, 打开图片文件, 读取图片数据, 并把 图片数据写到桌面背景上,从而实现了设置桌面背景的操作。 当计算机指点设 备光标的位置不在任一个链接图标上时,把这个消息交给原来系统的桌面消息 响应处理代码进行处理, 这时有可能是用户点击了某个快捷方式图标。
优选的, 所述桌面背景设置单元还包括:
图像获取单元 12021, 用于获取被选择的所述链接图标所指向图片文件的 图像数据;
图像显示单元 12022, 用于将所述图像数据写入所述桌面背景;
图像显示单元 12022在具体实现的技术操作上可以采用多种方式,既可以 是直接将图片数据写入桌面背景中, 也可以是预先生成替换好桌面背景的图 片, 再一次性写入桌面中。
优选的, 所述链接图标显示为所述图片文件的缩略图、符号图标或者文字 标志及其组合。
当显示为所述图片文件的缩略图时,需要事先根据图片文件数据生成图片 文件的缩略图, 生成的方法可以是, 调用操作系统提供的缩略图产生功能, 或 者是重新写代码读取图片文件的数据,按照一定的采样算法得到缩略图, 并把 缩略图保存在链接图标的数据结构中,作为链接图标的一个属性值。所述的链 接图标也可以显示为特定的符号, 当然链接图标也可以显示成一个文字标志。 链接图标还可以是透明的,在视觉上并不显示出来,但实际上还是占据了一定 的显示空间并可以响应用户的选择操作。
优选的, 所述装置还包括, 第一缩略图生成单元 1203, 用于才 据所述图 片文件的完整图像生成所述缩略图; 或者是第二缩略图生成单元, 用于根据所 述图片文件的一部分图像生成所述缩略图。
所述缩略图可以是所述图片文件的完整图像的缩略图或者图像的一部分 的缩略图。取完整图像数据形成缩略图时,可以在形成的缩略图中看到整个图 片的概况; 取图片的一部分时, 可以取固定大小的图片的中心区域, 也可以取
图片的旁边的区域, 例如取图片的左上角的局部图片,可以取方形或者圆形的 局部图片均可。
优选的, 还包括, 桌面分区单元 1204, 用于将桌面分成快捷方式区和空 白区域; 并且, 所述链接图标设置单元 1201将所述缩略图设置在所述空白区 域内。
链接图标的放置位置可以是桌面上的任何的位置。 在 windowsXP计算机 操作系统中, 快捷方式图标一般放置在桌面的左侧, 在这种情况下, 可以依据 快捷方式图标占据的部分桌面把桌面分成快捷方式区和空白区,可以将本发明 的链接图标放置在所述的空白区域内。
优选的, 还可以包括, 桌面浮动窗口设置单元, 用于设置桌面浮动窗口; 并且, 所述链接图标设置单元将所述缩略图设置在桌面浮动窗口中。 虽然理论 上所述链接图标设置单元可以将所述缩略图设置在任意类型的窗口中,但考虑 到操作的便利性, 优先采用桌面浮动窗口。
在 windowsXP中, 典型的桌面浮动窗口有两种, 一种是始终处于其它应 用程序窗口的下面的桌面子窗口, 另一种浮动窗口显示时可以处于顶层(也可 以不处于顶层)但不用的时候可以隐藏, 通过鼠标在屏幕边缘激活, 不会影响 用户的正常工作,在屏幕边缘激活的窗口可以是缩小在边缘的窗口从边缘放大 滑出的窗口, 也可以是直接在屏幕上显示出来的窗口。 在操作系统执行"显示 桌面"命令而自动把其它应用程序窗口最小化时, 被设置为桌面子窗口的浮动 窗口和置于顶层的浮动窗口可以始终保持常态。也可以采用创建一个普通窗口 作为连接图标容器,可以通过改造其属性的方法使其具备上述桌面浮动窗口的 特点。
优选的,所述链接图标以固定行列模式、大小渐变模式或者层叠模式显示。 当链接图标显示为固定行列模式时, 需要预先设置或获取显示区域的范 围,并预先设置链接图标的现实尺寸, 当然,为保持桌面显示的效果的一致性, 也可以使链接图标和桌面快捷方式图标的尺寸一样,然后才 据显示区域的尺寸 和链接图标的尺寸, 增加一定的空白间隔, 计算出每行应排列的图标数量, 逐 行把链接图标显示出来。链接图标显示时也可以使用大小渐变的模式显示,在 这种方式中, 当前被选中的链接图标以放大的状态被显示,放大的尺寸可以根 据具体的需要设定, 例如可以设为链接图标原尺寸的 2倍,位于被放大显示的 链接图标的周围的链接图标也可以以略微小一些的尺寸放大(如是原来的 1.5
倍)显示, 较远一些的其它的链接图标保持原样不放大显示, 还可以把放大的 行为和计算机指点设备的光标关联起来 ,放大所述计算机指点设备的光标所在 的位置的链接图标, 并随着光标的移动切换放大的链接图标,具体实施上可以 采用操作系统的消息机制拦截并获取光标的位置, 判断这个位置上的链接图 标, 并放大, 并把周围的链接图标以较小的比例放大显示。 还可以使用层叠方 式显示链接图标, 例如, 可以将链接图标排列成为部分重叠的方式, 可以按照 部分重叠的方式将链接图标排列成一个可以转动的环形 , 需要选择链接图标 时,可以使用计算机指点设备移动环形排列的链接图标,使需要的链接图标旋 转到最前面并选中。
优选的, 还包括, 分页模式设置单元 1205, 用于当所述链接图标的数量 大于桌面允许的显示数量时, 将所述链接图标设置为分页显示模式。
优选的, 还包括, 滚屏模式设置单元 1206, 用于当所述链接图标的数量 大于桌面允许的显示数量时, 将所述链接图标设置为滚屏方式显示模式。
优选的, 还包括, 翻页模式设置单元 1207, 用于将所述链接图标设置为 可以接收计算机指点设备的翻页指令进行步进速度可调的翻页操作的模式。滚 动屏幕的步进速度可以根据计算机指点设备的光标在屏幕上的位置进行动态 调整。
优选的, 还包括:
第一背景图片模式设置单元 1208, 用于设置桌面背景图片为可以接收计 算机键盘或者计算机指点设备特定按键的指令进行切换的模式; 或者,
第二背景图片模式设置单元 1209, 用于设置桌面背景图片为可以接收所 述计算机指点设备滚轮的滚动指令把所述背景图片进行放大或缩小的模式;或 者,
第三背景图片模式设置单元 1210, 用于设置桌面背景图片为可以接收对 所述背景图片的局部的选择指令把所选择的图片的局部放大到整个桌面背景 的模式; 或者,
第四背景图片模式设置单元 1211 , 用于设置桌面背景图片为可以接收在 所述背景图片上按下所述计算机指点设备滚轮并移动的指令移动所述桌面背 景图片的模式。
上述四个背景图片模式设置单元,能够接收计算机指点设备或者键盘的操 作命令,对桌面的背景图片进行操作, 能够实现对桌面背景图片的各种显示效
果的控制操作, 包括对背景图片的切换、 放缩、 局部放大和移动等操作。 优选的,把所述显示内容缩小的模式是, 当所述显示内容缩小到预先设定 的阔值时, 采用自动渐变效果缩小直至其达到预设尺寸。
优选的 ,将所述文件的内容显示在所述桌面背景上是将所述文件的内容以 自动方式逐步放大显示在桌面背景上直至其达到预设尺寸。 式: 首先计算显示内容高宽比与桌面窗口高宽比的实际高宽比差异系数, 以设 定的临界高宽比差异系数为分界线,依据实际高宽比差异系数和设定的临界高 宽比差异系数的大小关系来确定采用的背景图片放缩显示模式。
作为对上述装置实施例的另一个扩展实施例,链接图标不仅可以指向各种 类型的图片文件, 还可以指向各种多媒体文件, 例如, 动画文件、 音频文件、 视频文件、 网页或者文本文件等多媒体文件。 则该实施例可以进一步包括, 链 接图标设置单元, 用于在桌面上设置链接图标, 所述链接图标指向保存在存储 单元中作为桌面背景的多媒体文件; 桌面背景设置单元, 用于接收对所述链接 图标的选择, 将所述链接图标所指向的多媒体文件的内容设置成桌面背景。
优选的 ,对所述链接图标的选择是在所述链接图标上单击计算机指点设备 按键、双击计算机指点设备按键、滚动计算机指点设备的滚轮或者按下键盘的 特定键。
参见图 12 , 是本发明的系统框图。 包括,显示在计算机显示器上的桌面 1301 , 用于显示桌面背景, 还包括,
桌面背景控制装置 1302, 包括下列单元:
链接图标设置单元 13021, 用于在桌面上设置链接图标, 所述链接图标用 于指向保存在存储单元中作为桌面背景的文件;
桌面背景设置单元 13022, 用于接收对所述链接图标的选择, 将所述链接 图标所指向的文件内容设置成桌面背景。
优选的, 所述链接图标显示为所述图片文件的缩略图、符号图标或者文字 标志。
优选的, 所述文件可以是图片文件、 动画文件、 音频文件、 视频文件、 网 页或者文本文件。
根据用户预先指定需要设置为桌面背景的图片文件, 链接图标设置单元
13021在桌面上设置链接图标, 用户选择链接图标, 桌面背景设置单元 13022
接受用户的选择,获取被选择的链接图标所指向的文件内容, 并设置为桌面背 景。 当所述文件内容是图片时; 把图片设置为桌面背景, 对于需要媒体播放器 才能展示其内容的文件 ,自动调用相应的媒体播放器程序或控件、插件来播放。 播放时,在桌面背景上播放,例如,通过在桌面上增加一个桌面窗口的子窗口, 在该窗口中加载媒体播放器控件或自行编写解码播放代码均可以在桌面背景 上播放电影,这种方式可以在用户欣赏电影的同时进行桌面操作。作为一个扩 展,也可以通过用户设置切换到弹出窗口上进行播放。 类似的, 如对于 flash动 画、网页或者文本文件等,都可以用类似的方法把内容直接显示在桌面背景上。
本发明以 windowsXP为实施例描述实施过程时, 绘制桌面背景的优选的 方式是直接在 windows桌面窗口对象上上执行各种绘制操作,事实上,只要能 够达到设置桌面背景的操作方法都是可行的,比如将一对象置于桌面快捷方式 之下模拟桌面背景的显示。 而对于虚拟桌面及其他计算机设备,具体调用细节 可能会有差异, 但核心思想都是一样的。
在本发明的另一种实施方案中, 可以利用 Windows的 ActiveDesktop (活 动桌面)技术实施本发明。 windowsXP的 ActiveDesktop提供了一种编程接口 , 它可以允许用户指定一个网页作为桌面,设置背景文件时需要输入该网页的地 址。 就 ActiveDesktop本身来说, 其实是提供了一个网页容器, 以一个镶嵌于 桌面或铺满整个桌面的网页浏览器窗口作为桌面背景,桌面背景上浏览器窗口 中显示的网页具有和普通网页一样的特性, 如可以有超级链接, 可以点击等。
在一种利用 ActiveDesktop 技术实施本发明的方案中, 首先利用
ActiveDesktop接口的方法如 AddDesktopItem (增加桌面项)等向桌面添力口一 个显示指定网页的桌面项并最大化,该网页显示在桌面背景之上, 桌面快捷方 式之下,实现和桌面的集成功能。在添加到桌面的网页中显示待操作的缩略图, 单个缩略图可使用 HTML (超文本链接标示语言)中的内置对象显示。优选的, 缩略图也可以放置在网页上的窗口中, 窗口在网页中可以通过 HTML对象模 拟实现。 图片、视频等桌面背景设置项和缩略图的来源可以从服务器下载显示 到网页上, 或者结合在网页中嵌入 COM (组件对象模型)组件, 通过 COM 组件访问本地文件显示在网页上。
通过 DHTML (动态超文本链接标示语言)提供的事件响应功能, 在网页 中利用脚本 (如 JavaScript等)响应操作事件,控制缩略图的选择及缩放等操作。 缩略图对象可保存缩略图原始文件的位置、 显示方式等属性。 在本实施例中,
根据鼠标单击设置桌面背景的具体实现方法下所述:
首先在网页中为缩略图对象添加鼠标事件响应函数, 用户单击缩略图,触 发该函数的执行。从事件参数中得到触发事件的缩略图对象,从该对象的属性 中取得缩略图的原始文件位置。创建一个显示缩略图原始文件的 HTML对象, 或者显示现有隐藏的 HTML对象, 将该 HTML对象充满整个网页, 并设置该 HTML对象的 z-index (层叠次序 ) 置于所有页面对象的最上层。 设置 HTML 对象的数据源为缩略图的原始文件位置, 完成桌面背景的设置。
熟悉本领域的一般技术人员可以理解,利用 DHTML在页面上可以模拟实 现普通桌面应用程序的大部分功能,对于在网页中部分不容易或不能实现的功 能, 如得到桌面背景的空白区域信息等, 可利用 COM组件来扩展实现。 对于 利用网页来实施本发明的其他特性, 核心思想同实施例 1, 本领域的一般技术 人员参考实施例 1, 可以很容易的实现。
在另一种利用 ActiveDesktop技术实施本发明的方案中, 在网页中嵌入 COM组件, 将 COM组件充满整个网页, 集成在桌面上显示。嵌入的 COM组 件响应操作消息, 完成缩略图和桌面背景的显示及控制, 在该 COM组件中按 实施例 1的描述完成本发明的实施。
为了使网页上的缩略图布局和桌面背景更协调,可以通过在网页组件中加 入桌面属性的访问并执行相应操作,比如通过获取桌面空白区域并将缩略图显 示到空白区域就可以避免缩略图和快捷方式以及其它侧边栏程序在界面排版 上发生冲突。
在上面介绍的利用 ActiveDesktop技术实施本发明的方案中, 网页上的内 容也可以是 flash (交互式矢量图和 Web动画)动画或者其它可以实现用户交 互的对象。 在实施方案中, 既可以自动把所述网页指定为桌面背景, 也在网页 上提供调用 ActiveDesktop把本网页指定为桌面背景的功能菜单或按钮, 当用 户选择菜单或按钮时,把本网页指定为桌面。也可以提供若干个不同的网页供 用户选择。所提供的网页可以保存在本地计算机设备中,也可以保存在远程服 务器上, 用户可以通过网络协议(如 ftp或者 http等)访问到所述的网页。
在本发明的还有一种实施方案中,创建独立的桌面程序模拟操作系统桌面 功能,替代操作系统的桌面程序,该程序能够截获操作系统显示桌面的消息和 命令模拟实现操作系统桌面的所有功能,在该桌面程序中按实施例 1的描述完 成本发明的实施。
在本发明的还有另一种实施方案中,创建独立的桌面程序,将该程序主窗 口的父窗口或所有者窗口设置为桌面窗口,使该程序主窗口位于桌面快捷方式 之下, 桌面背景之上, 集成在桌面上。 在该桌面程序中按实施例 1的描述完成 本发明的实施。
将本发明用于支持 3D桌面的操作系统时, 其核心思想类似, 只不过对桌 面操作时所调用的具体函数有所差异, 其实施的外观效果可针对这种 3D特性 进行适应性调整, 以使显示风格统一。
本发明还可以用于移动设备或者数字电视机顶盒等设备 ,由于没有鼠标设 备,其等操作则重点以键盘或遥控器进行操作,其缩略图的绘制、背景的设置、 背景的放缩与平移等操作与前述实施例类似。 本领域一般技术人员容易理解, 在其它不同的操作系统或计算机设备上实施本发明方案时,具体代码可能会有 所区别, 但其核心思想是完全一样的。
以上对本发明所提供的一种控制桌面背景的方法、装置及系统,进行了详 实施例的说明只是用于帮助理解本发明的方法及其核心思想; 同时,对于本领 域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有 改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。
Claims
1、 一种控制桌面背景的方法, 其特征在于, 包括下列步骤:
在桌面上设置链接图标,所述链接图标指向保存在存储单元中作为桌面背 景的文件;
接收对所述链接图标的选择,将所述链接图标所指向文件的内容设置成桌 面背景。
2、 根据权利要求 1所述的方法, 其特征在于, 所述将文件内容设置成桌 面背景采用如下步骤实现: 获取所述链接图标所指向文件的内容; 将所述文件 的内容显示在所述桌面背景上。
3、 根据权利要求 2所述的方法, 其特征在于, 还包括, 将所述桌面分成 快捷方式区和空白区域, 以及, 将所述链接图标设置在所述空白区域内。
4、 根据权利要求 2所述的方法, 其特征在于, 还包括, 设置桌面浮动窗 口, 以及, 将所述链接图标设置在桌面浮动窗口中。
5、 根据权利要求 2所述的方法, 其特征在于, 所述链接图标为所指向文 件的缩略图、 符号图标或者与该文件相关的文字及其组合。
6、 根据权利要求 5所述的方法, 其特征在于, 还包括,
才艮据所述文件内容的完整显示效果生成所述缩略图,或者, ^居所述文件 内容显示效果的一部分生成所述缩略图。
7、 根据权利要求 2所述的方法, 其特征在于, 所述链接图标以固定的行 列模式、 大小渐变模式或者层叠模式显示。
8、 根据权利要求 7所述的方法, 其特征在于, 还包括, 当所述链接图标 的数量大于桌面允许的显示数量时, 设置所述链接图标为分页显示模式。
9、 根据权利要求 7所述的方法, 其特征在于, 还包括, 当所述链接图标 的数量大于桌面允许的显示数量时, 设置所述链接图标为滚屏显示模式。
10、 根据权利要求 9所述的方法, 其特征在于, 还包括,
将所述链接图标设置为可以接收计算机指点设备的翻页指令进行步进速 度可调的滚屏操作的模式。
11、 根据权利要求 2所述的方法, 其特征在于, 还包括,
将所述桌面背景显示内容设置为可以根据计算机键盘或者计算机指点设 备特定按键的指令进行切换的模式; 或者,
将所述桌面背景显示内容设置为可以接收所述计算机指点设备滚轮的滚
动指令把所述显示内容进行放大或缩小的模式; 或者,
将所述桌面背景显示内容设置为可以接收对所述桌面背景显示内容的局 部的选择指令把所选择的局部显示内容放大到整个桌面背景的模式; 或者, 将所述桌面背景显示内容设置为可以接收在所述背景上按下所述计算机 指点设备滚轮并移动的指令进行移动所述桌面背景显示内容的模式。
12、 根据权利要求 11所述的方法, 其特征在于, 把所述显示内容缩小的 模式是, 当所述显示内容缩小到预先设定的阔值时, 采用自动渐变效果缩小直 至其达到预设尺寸。
13、 根据权利要求 11所述的方法, 其特征在于, 将所述文件的内容显示 在所述桌面背景上是将所述文件的内容以自动方式逐步放大显示在桌面背景 上直至其达到预设尺寸。
14、 根据权利要求 2、 5或 10所述的方法, 其特征在于, 采用下述方法确 定所述桌面背景显示内容显示模式:首先计算显示内容高宽比与桌面窗口高宽 比的实际高宽比差异系数, 以设定的临界高宽比差异系数为分界线,依据实际 高宽比差异系数和设定的临界高宽比差异系数的大小关系来确定采用的背景 图片放缩显示模式。
15、 根据权利要求 1、 2、 5或 10所述的方法, 其特征在于, 所述链接图 标所指向的文件是图片文件、 动画文件、 音频文件、 视频文件、 网页或者文本 文件。
16、根据权利要求 1或 2所述的方法, 其特征在于, 对所述链接图标的选 择是在所述链接图标上单击计算机指点设备按键、 双击计算机指点设备按键、 滚动计算机指点设备的滚轮或者按下键盘的特定键。
17、 一种控制桌面背景的装置, 其特征在于, 包括:
链接图标设置单元, 用于在桌面上设置链接图标, 所述链接图标指向保存 在存储单元中作为桌面背景的文件;
桌面背景设置单元, 用于接收对所述链接图标的选择,将所述链接图标所 指向文件的内容设置成桌面背景。
18、 根据权利要求 17所述的装置, 其特征在于, 所述桌面背景设置单元 还包括:
文件内容获取单元, 用于获取被选择的所述链接图标所指向文件的内容; 文件内容显示单元, 用于将所述文件的内容显示在所述桌面背景上。
19、 根据权利要求 18所述的装置, 其特征在于, 还包括:
桌面分区单元, 用于将桌面分成快捷方式区和空白区域;
并且, 所述链接图标设置单元将所述链接图标设置在所述空白区域内。
20、 根据权利要求 18所述的装置, 其特征在于, 还包括:
桌面浮动窗口设置单元, 用于设置桌面浮动窗口;
并且, 所述链接图标设置单元将所述链接图标设置在桌面浮动窗口中。
21、 根据权利要求 18所述的装置, 其特征在于, 所述链接图标显示为所 述图片文件的缩略图、 符号图标或者文字标志及其组合。
22、 根据权利要求 21所述的装置, 其特征在于, 还包括:
第一缩略图生成单元,用于才 据所述文件内容的完整显示效果生成所述缩 略图; 或者,
第二缩略图生成单元 ,用于 ^居所述文件内容显示效果的一部分生成所述 缩略图。
23、 根据权利要求 18所述的装置, 其特征在于, 所述链接图标以固定行 列模式、 大小渐变模式或者层叠模式显示。
24、 根据权利要求 23所述的装置, 其特征在于, 还包括:
分页模式设置单元,用于当所述链接图标的数量大于桌面允许的显示数量 时, 将所述链接图标设置为分页显示模式。
25、 根据权利要求 23所述的装置, 其特征在于, 还包括:
滚屏模式设置单元,用于当所述链接图标的数量大于桌面允许的显示数量 时, 将所述链接图标设置为滚屏方式显示模式。
26、 根据权利要求 25所述的装置, 其特征在于, 还包括:
翻页模式设置单元,用于将所述链接图标设置为可以接收计算机指点设备 的翻页指令进行步进速度可调的翻页操作的模式。
27、 根据权利要求 18所述的装置, 其特征在于, 还包括:
第一背景模式设置单元,用于将所述桌面背景显示内容设置为可以根据计 算机键盘或者计算机指点设备特定按键的指令进行切换的模式; 或者,
第二背景模式设置单元,用于将所述背景显示内容设置为可以接收所述计 算机指点设备滚轮的滚动指令把所述显示内容进行放大或缩小的模式; 或者 , 第三背景模式设置单元,用于将所述桌面背景显示内容设置为可以接收对 所述桌面背景显示内容的局部的选择指令把所选择的局部显示内容放大到整
个桌面背景的模式; 或者,
第四背景模式设置单元,用于将所述桌面背景显示内容设置为可以接收在 所述背景上按下所述计算机指点设备滚轮并移动的指令进行移动所述桌面背 景显示内容的模式。
28、根据权利要求 27所述的装置, 其特征在于, 把所述显示内容缩小的 模式是, 当所述显示内容缩小到预先设定的阔值时, 采用自动渐变效果缩小直 至其达到预设尺寸。
29、 根据权利要求 27所述的装置, 其特征在于, 将所述文件的内容显示 在所述桌面背景上是将所述文件的内容以自动方式逐步放大显示在桌面背景 上直至其达到预设尺寸。
30、 根据权利要求 18、 21或 26所述的装置, 其特征在于, 所述文件内容 显示单元采用下述方法确定所述显示内容的显示模式:首先计算显示内容高宽 比与桌面窗口高宽比的实际高宽比差异系数,以设定的临界高宽比差异系数为 分界线,依据实际高宽比差异系数和设定的临界高宽比差异系数的大小关系来 确定采用的背景图片放缩显示模式。
31、 根据权利要求 17、 18、 21或 26所述的装置, 其特征在于, 所述文件 是图片文件、 动画文件、 音频文件、 视频文件、 网页或者文本文件。
32、根据权利要求 17或 18所述的方法, 其特征在于, 对所述链接图标的 选择是在所述链接图标上单击计算机指点设备按键、 双击计算机指点设备按 键、 滚动计算机指点设备的滚轮或者按下键盘的特定键。
33、 一种控制桌面背景的系统, 包括计算机显示器, 用于显示桌面, 其特 征在于, 还包括,
桌面背景控制装置, 包括下列单元:
链接图标设置单元, 用于在桌面上设置链接图标, 所述链接图标用于指向 作为桌面背景的文件;
桌面背景设置单元, 用于接收对所述链接图标的选择,将所述链接图标所 指向的文件内容设置成桌面背景。
34、 根据权利要求 33所述的系统, 其特征在于, 所述链接图标显示为所 述文件的缩略图、 符号图标或者文字标志及其组合。
35、根据权利要求 33或 34所述的系统, 其特征在于, 所述文件是图片文 件、 动画文件、 音频文件、 视频文件、 网页或者文本文件。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200610162643.1 | 2006-11-30 | ||
CN2006101626431A CN101192129B (zh) | 2006-11-30 | 2006-11-30 | 一种控制桌面背景的方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2008064610A1 true WO2008064610A1 (fr) | 2008-06-05 |
Family
ID=39467454
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2007/071147 WO2008064610A1 (fr) | 2006-11-30 | 2007-11-29 | Procédé, système et appareil pour commander le fond d'un bureau |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101192129B (zh) |
WO (1) | WO2008064610A1 (zh) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102364423A (zh) * | 2011-06-28 | 2012-02-29 | 奇智软件(北京)有限公司 | 一种桌面切换方法 |
CN103024133A (zh) * | 2011-09-23 | 2013-04-03 | 中兴通讯股份有限公司 | 触屏待机墙纸显示设置方法及其装置 |
CN105654424A (zh) * | 2014-11-14 | 2016-06-08 | 南京酷派软件技术有限公司 | 图像的调整比例显示方法、显示系统、显示装置和终端 |
Families Citing this family (42)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI482077B (zh) | 2009-06-02 | 2015-04-21 | Htc Corp | 電子裝置、其桌面瀏覽方法與電腦程式產品 |
CN102830908B (zh) * | 2009-06-04 | 2016-05-25 | 宏达国际电子股份有限公司 | 电子装置与其桌面浏览方法 |
US20110113486A1 (en) * | 2009-11-10 | 2011-05-12 | James Anthony Hunt | Credentialing User Interface for Gadget Application Access |
CN101795322B (zh) * | 2010-02-05 | 2012-11-21 | 华为终端有限公司 | 一种预览的方法、装置和手机 |
US8584047B2 (en) * | 2010-05-18 | 2013-11-12 | Microsoft Corporation | Orbital representation of hierarchical navigation |
US20120036483A1 (en) * | 2010-08-09 | 2012-02-09 | Infineon Technologies Ag | Device, method for displaying a change from a first picture to a second picture on a display, and computer program product |
JP5586495B2 (ja) * | 2011-02-01 | 2014-09-10 | 三菱電機株式会社 | プログラマブル表示器 |
CN102253818A (zh) * | 2011-06-27 | 2011-11-23 | 深圳市茁壮网络股份有限公司 | 一种背景图片的显示方法及装置 |
CN102915180B (zh) * | 2011-08-02 | 2015-06-03 | 联想(北京)有限公司 | 显示方法、显示装置及电子设备 |
CN103164205B (zh) * | 2011-12-15 | 2016-08-24 | 阿里巴巴集团控股有限公司 | 一种轮播效果的切换方法及装置 |
CN102662591B (zh) | 2012-04-13 | 2014-11-05 | 华为终端有限公司 | 数据处理方法和装置 |
BR112014030783B1 (pt) | 2012-06-20 | 2021-02-17 | Maquet Critical Care Ab | aparelho para respiração que tem um visor com plano de fundo selecionável por usuário e método de controle interno de um visor |
CN103593331B (zh) * | 2012-08-15 | 2018-09-18 | 腾讯科技(深圳)有限公司 | 一种页面排版方法及装置 |
CN102830936A (zh) * | 2012-09-02 | 2012-12-19 | 广州市渡明信息技术有限公司 | 一种移动设备的浏览方法及移动设备 |
CN103049081B (zh) * | 2012-12-05 | 2017-05-24 | 上海量明科技发展有限公司 | 开启对象视觉触发的方法、客户端及系统 |
CN103902174B (zh) * | 2012-12-26 | 2017-06-27 | 联想(北京)有限公司 | 一种显示方法和设备 |
CN103019522B (zh) * | 2013-01-11 | 2015-09-30 | 华为终端有限公司 | 用户界面中图标的显示方法与移动终端 |
CN103235691B (zh) * | 2013-05-14 | 2015-11-04 | 魅族科技(中国)有限公司 | 一种图标的生成方法、显示方法及终端 |
CN103269401B (zh) * | 2013-05-20 | 2015-09-09 | 魅族科技(中国)有限公司 | 一种图标的展示方法及终端 |
JP6087756B2 (ja) * | 2013-07-10 | 2017-03-01 | 株式会社ア−キテック | 作図システム及びそのプログラム |
CN103472912B (zh) * | 2013-08-18 | 2018-03-23 | 苏州量跃信息科技有限公司 | 眼部充能触发的方法及系统 |
CN104699361A (zh) * | 2013-12-04 | 2015-06-10 | 航天信息股份有限公司 | 一种工控设备人机交互界面的启动与数据录入方法 |
CN103838629B (zh) * | 2014-02-18 | 2017-11-17 | 宇龙计算机通信科技(深圳)有限公司 | 应用图标的切换方法及通信终端 |
CN103809909B (zh) * | 2014-02-19 | 2018-03-27 | 联想(北京)有限公司 | 一种信息处理方法及电子设备 |
CN104020979B (zh) * | 2014-06-20 | 2019-04-05 | 努比亚技术有限公司 | 一种自适应桌面选择音效的移动终端及方法 |
CN104536802B (zh) * | 2014-12-19 | 2021-05-04 | 中兴通讯股份有限公司 | 一种实现应用调用的方法及虚拟机 |
CN104571920B (zh) * | 2015-01-27 | 2018-07-06 | 联想(北京)有限公司 | 显示处理方法及显示处理装置 |
CN104821004B (zh) * | 2015-04-28 | 2018-06-05 | 成都品果科技有限公司 | 一种以基于视差原理的组合动画实现用户行为引导的方法 |
CN105183272A (zh) * | 2015-04-30 | 2015-12-23 | 努比亚技术有限公司 | 桌面图标排列方法及装置 |
CN106293684A (zh) * | 2015-06-23 | 2017-01-04 | 深圳市东方拓宇科技有限公司 | 一种浮动面板显示方法以及移动终端 |
CN105117287A (zh) * | 2015-09-23 | 2015-12-02 | 北京超卓科技有限公司 | 一种图形用户界面及其实现和用户交互方法 |
CN107436892A (zh) * | 2016-05-26 | 2017-12-05 | 秘密基地数位科技股份有限公司 | 图像的显示方法 |
CN106514071B (zh) * | 2016-12-06 | 2018-04-10 | 南京熊猫电子股份有限公司 | 一种机器人焊接摆动设定方法 |
CN106775235B (zh) * | 2016-12-14 | 2020-06-19 | 北京小米移动软件有限公司 | 屏幕壁纸展示方法和装置 |
CN107797728A (zh) * | 2017-10-31 | 2018-03-13 | 维沃移动通信有限公司 | 一种访问应用程序的方法和移动终端 |
CN108052246A (zh) * | 2017-11-27 | 2018-05-18 | 上海爱优威软件开发有限公司 | 一种隐藏应用图标的方法及终端设备 |
CN109189283B (zh) * | 2018-07-26 | 2021-04-02 | 在线途游(北京)科技有限公司 | 一种图标生成方法、装置及设备 |
CN109343918A (zh) * | 2018-08-29 | 2019-02-15 | 北京小米移动软件有限公司 | 图标排布方法、装置、终端及存储介质 |
CN110825286B (zh) * | 2019-10-30 | 2021-09-03 | 北京字节跳动网络技术有限公司 | 图像处理方法、装置和电子设备 |
CN111045764B (zh) * | 2019-11-18 | 2023-09-08 | 北京欢乐扬帆科技有限公司 | 一种界面适配方法、装置、电子设备及存储介质 |
CN111586470B (zh) * | 2020-05-21 | 2022-09-23 | 上海大因多媒体技术有限公司 | 一种多图像显示的控制方法、主控装置及控制系统 |
CN117687771A (zh) * | 2023-07-24 | 2024-03-12 | 荣耀终端有限公司 | 一种缓冲区分配方法、装置、电子设备及存储介质 |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002055755A (ja) * | 2000-08-07 | 2002-02-20 | Kazunori Tsukiki | 情報処理装置 |
CN1560737A (zh) * | 2004-02-19 | 2005-01-05 | 无敌科技(西安)有限公司 | 具有显示器的便携式电子装置自定背景图案的方法 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1355492A (zh) * | 2000-11-27 | 2002-06-26 | 刘晓曼 | 公共信息终端互联网联合广告发布模式 |
-
2006
- 2006-11-30 CN CN2006101626431A patent/CN101192129B/zh active Active
-
2007
- 2007-11-29 WO PCT/CN2007/071147 patent/WO2008064610A1/zh active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002055755A (ja) * | 2000-08-07 | 2002-02-20 | Kazunori Tsukiki | 情報処理装置 |
CN1560737A (zh) * | 2004-02-19 | 2005-01-05 | 无敌科技(西安)有限公司 | 具有显示器的便携式电子装置自定背景图案的方法 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102364423A (zh) * | 2011-06-28 | 2012-02-29 | 奇智软件(北京)有限公司 | 一种桌面切换方法 |
CN103024133A (zh) * | 2011-09-23 | 2013-04-03 | 中兴通讯股份有限公司 | 触屏待机墙纸显示设置方法及其装置 |
CN105654424A (zh) * | 2014-11-14 | 2016-06-08 | 南京酷派软件技术有限公司 | 图像的调整比例显示方法、显示系统、显示装置和终端 |
Also Published As
Publication number | Publication date |
---|---|
CN101192129A (zh) | 2008-06-04 |
CN101192129B (zh) | 2012-05-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2008064610A1 (fr) | Procédé, système et appareil pour commander le fond d'un bureau | |
AU2017200737B2 (en) | Multi-application environment | |
JP6144707B2 (ja) | アレイモードを使用したブラウザ内でのコンテンツアイテム間のナビゲート方法 | |
US9104440B2 (en) | Multi-application environment | |
US7917868B2 (en) | Three-dimensional motion graphic user interface and method and apparatus for providing the same | |
US7761813B2 (en) | Three-dimensional motion graphic user interface and method and apparatus for providing the same | |
US9710149B2 (en) | Method and apparatus for displaying user interface capable of intuitively editing and browsing folder | |
US9026946B2 (en) | Method and apparatus for displaying an image | |
US20130147849A1 (en) | Display apparatus for displaying screen divided into a plurality of areas and method thereof | |
WO2011072497A1 (zh) | 窗口管理方法、装置及计算设备 | |
KR20120113738A (ko) | 콘텐츠를 보기 위한 갤러리 애플리케이션 | |
JP5226051B2 (ja) | コンテンツ表示装置、コンテンツ表示方法、プログラム、および記録媒体 | |
JP2006164260A (ja) | データ処理装置及びシステムのためのユーザインターフェイス | |
JP2006164261A (ja) | 改良型ユーザインターフェイスを有するデータ処理装置及びシステム | |
JP3780976B2 (ja) | 電子コンテンツ閲覧装置及び電子コンテンツ閲覧方法 | |
JP2013109775A (ja) | コンテンツ表示装置、コンテンツ表示方法、プログラム、および記録媒体 | |
WO2008064613A1 (fr) | Procédé et appareil pour traiter des fonds de bureau et système d'interface pour un bureau de système d'exploitation | |
JP2013175222A (ja) | コンテンツ表示装置、コンテンツ表示方法、プログラム、および記録媒体 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 07817337 Country of ref document: EP Kind code of ref document: A1 |
|
DPE2 | Request for preliminary examination filed before expiration of 19th month from priority date (pct application filed from 20040101) | ||
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 07817337 Country of ref document: EP Kind code of ref document: A1 |