WO2008064613A1 - Method and apparatous for processing desktop backgrounds and interface system for os desktop - Google Patents

Method and apparatous for processing desktop backgrounds and interface system for os desktop Download PDF

Info

Publication number
WO2008064613A1
WO2008064613A1 PCT/CN2007/071157 CN2007071157W WO2008064613A1 WO 2008064613 A1 WO2008064613 A1 WO 2008064613A1 CN 2007071157 W CN2007071157 W CN 2007071157W WO 2008064613 A1 WO2008064613 A1 WO 2008064613A1
Authority
WO
WIPO (PCT)
Prior art keywords
desktop
command
background image
desktop background
processing unit
Prior art date
Application number
PCT/CN2007/071157
Other languages
French (fr)
Chinese (zh)
Inventor
Yong Cheng
Binglin Liu
Original Assignee
Chongqing Yeahto Information Technology Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Yeahto Information Technology Co., Ltd. filed Critical Chongqing Yeahto Information Technology Co., Ltd.
Publication of WO2008064613A1 publication Critical patent/WO2008064613A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

Definitions

  • the present invention relates to the field of background processing, and in particular, to a method and apparatus for processing a desktop background and an interface system of an operating system desktop.
  • 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 according to the Windows naming convention, this shortcut link is also called shortcut or shortcut icon.
  • Quick links may also use menu items or control buttons as expressions. They may be displayed directly on the screen, or they may be classified and displayed. The screen displayed on this screen is called the desktop of the computer system.
  • the pictures can be set. As a desktop background, make the screen display more colorful. The desktop background occupies most of the desktop area, and the desktop background is reasonably set, which makes the desktop beautiful, the user feels happy, and makes the computer more human.
  • the processing method of the desktop background image is mainly to use the desktop background image processing program provided by the operating system for the user, and the related function interface needs to be opened to operate.
  • the operating system provides the processing functions of the display state of the three methods of stretching, tiling and centering of the desktop background image, and these functions need to be performed by the user in multiple steps. For example, to select "D: ⁇ My Documents ⁇ My Pictures ⁇ Background 2.jpg" as the desktop background, you need to select the "Properties" item of the menu item in the context menu of the desktop, and select "In the dialog window that opens".
  • the centered state provided in Windows XP can display the image in a fixed area in the center of the desktop background; the tiled state can repeatedly display small images on the entire desktop background, and for large images, only the upper left corner of the image is displayed.
  • the stretched state fills the image with the entire adaptive desktop background as a whole.
  • the resolution of the existing "wallpaper" image (the image file used for desktop background) is usually adjusted to 1024*768 which is suitable for the resolution of ordinary display, with the gradual popularization of large-size and wide-screen displays and high-resolution pictures ( For example, if the resolution of 2000* 1500 is used, the existing desktop background image processing method has the following problems:
  • the technical problem to be solved by the present invention is to provide a method and a device for processing a desktop background and an interface system of an operating system desktop, so as to solve the problem in the prior art that a menu or a dialog box is required to complete the operation and the display effect cannot be quickly controlled. problem.
  • the present invention discloses a method for processing a desktop background, including the steps of: receiving a command issued by a computer human-machine interaction device;
  • the desktop background image is directly processed.
  • the invention also provides an apparatus for processing a background of a desktop, comprising:
  • a command receiving unit configured to receive a command issued by a computer human-machine interaction device;
  • the processing unit is configured to directly process the desktop background image according to the command.
  • the invention further provides an interface system of an operating system desktop, comprising a shortcut processing unit and a background image display unit, and further comprising:
  • a command receiving unit configured to receive a command issued by the shortcut key unit in the computer human-machine interaction device, and identify a background image processing command
  • a processing unit configured to directly process the desktop background image in the background image display unit according to the command.
  • the present invention has the following advantages:
  • the invention first receives a command issued by a computer human-machine interaction device; according to the command, directly processes a desktop background image. It is not necessary to repeatedly open the menu or dialog box to set the processing mode of the desktop background image, directly process the desktop background image, and directly reflect the processing effect on the desktop after each processing, which can significantly reduce the operation steps and save user time. .
  • FIG. 1 is a schematic diagram of a desktop layout of the present invention
  • Embodiment 3 is a flow chart of Embodiment 1 of a method for processing a desktop background according to the present invention
  • Figure 5 is a schematic view showing the size of the zoom position of the cursor of the present invention.
  • 6a is a flow chart of scaling a local area of a desktop background image according to the present invention.
  • Figure 6b is a diagram showing an example of selection of a frame selection enlargement area of the present invention.
  • Figure 6c is an enlarged effect view of the frame selection of the present invention.
  • FIG. 7 is a flow chart of moving a desktop background image according to the present invention.
  • Figure 9 is an operational position diagram of the automatic translation of the desktop background of the present invention.
  • Figure 10 is a flow chart of the automatic moving desktop background in response to mouse operation of the present invention.
  • Embodiment 11 is a flow chart of Embodiment 2 of a method for processing a desktop background according to the present invention.
  • Figure 12 is a block diagram of an embodiment 1 of an apparatus for processing a desktop background of the present invention.
  • Figure 13 is a block diagram of an embodiment 2 of an apparatus for processing a desktop background of the present invention.
  • 14 is a schematic diagram of a desktop instruction partition list of the present invention
  • 15 is a schematic diagram of an instruction partition on a desktop when the desktop icon of the present invention is hidden
  • 16 is a block diagram of an embodiment of an interface system of an operating system desktop of the present invention.
  • the embodiments of the present invention can be applied to a computer device using the Windows XP operating system, but are not limited thereto, and those skilled in the art will readily understand that the present invention can be applied to any computer device having a display and a processor.
  • a computer device having a display and a processor.
  • PDA personal digital assistant
  • mobile phone digital TV set-top box
  • laptop or PC personal computer
  • Windows XP Take Windows XP as an example. A typical layout of the desktop is shown in Figure 1, including the desktop window.
  • the desktop background 202, the shortcut 203, the shortcut area 204, and the blank area 205 also include a task bar 206 for task scheduling and switching, and a "Start" button 207 for calling up more startup links in the menu mode.
  • the desktop background 202 is a picture overlaid on the desktop window 201 (the picture can also be cancelled by the user and replaced with a monochrome background).
  • 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.
  • virtual desktop software in third-party software that is characterized by the ability to create multiple desktops. Similar to the purpose of multiple desktops provided by the operating system, the main function of virtual desktops is to provide more flexible application shortcut group management to suit different work environments.
  • a virtual desktop may be a stand-alone, stand-alone alternative to operating system desktop control, or a functional extension based on existing operating system desktop features.
  • the following describes the process of subclassing the default desktop of the Windows XP operating system and implementing the present invention to achieve a visual background display without a visual interface.
  • the desktop does not provide a response to the selection operation and scrolling operation of the mouse in the background area of the desktop.
  • the response process of the message can be taken over by the desktop window, and then the code is used according to the mouse.
  • the operation responds by controlling 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, calling the API (application programming interface) to implement the table when receiving the specific message.
  • the invention also completes the control of the desktop by sub-process sub-classification of the desktop window, intercepts the message of the desktop window, and realizes display control and interactive operation on the background area of the desktop.
  • the subclassing flowchart of the desktop is as shown in FIG. 2, 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.
  • One of the methods for obtaining the operation information of the pointing device on the desktop in the Windows operating system is not limited to the present invention.
  • the specific implementation may also be implemented by other means, such as creating a pointing device. It is possible to receive information about the object of the operation information and periodically detect the operation information of the pointing device.
  • the implementation method may be different on different operating systems, and for the operating system developer, the implementation method may be more direct.
  • Embodiment 1 of the method of the present invention which includes:
  • Step 401 Receive a command issued by a computer human-machine interaction device.
  • the command is directly issued by the computer human-computer interaction device, and is an action command directly sent by the computer human-computer interaction device, for example, a direct command such as a button press, a double click, a cursor position movement or a wheel rotation, and is not a human-computer interaction by a computer.
  • a direct command such as a button press, a double click, a cursor position movement or a wheel rotation
  • the function command issued by the control by clicking the button, selection box and other related controls displayed on the screen.
  • the desktop background image is processed according to the direct command, which reduces the steps of the user operation, saves the user time, and improves the operation efficiency.
  • the human-machine interaction device is an input device connected to a computing device, such as a keyboard, a mouse, a joystick, a trackball, a touch screen, a stylus or a wireless remote control device; a command for inputting a user.
  • the command may be a specific button, or a combination of specific buttons, or a scrolling of a device such as a scroll wheel or a trackball or a combination thereof with a specific button, for example, Ait t of the keyboard or swft and Ctrl buttons.
  • the combination can also be a combination of Ctrl and ⁇ buttons, or a frame selection action by holding down the left mouse button to move the mouse.
  • Step 402 Process the desktop background image directly according to the command.
  • the desktop system can intercept the direct command issued by the computer human-computer interaction device (such as a mouse) on the desktop, and according to the content of the command, the trigger program code is pre-
  • the defined processing method is to process the desktop background image.
  • the subsequent processing is not required to be converted into a function instruction by converting the operation message of the control displayed on the screen, and the desktop background image can be directly processed according to the command and the processing effect is immediately reflected on the desktop background.
  • the specific process of step 402 may be: acquiring a current background image of the desktop, processing the desktop background image according to the specific function of the instruction, and displaying the processed desktop background image on the desktop.
  • the result of the processing is to change the appearance of the desktop display.
  • the method that can directly process the desktop background display content data is a method that can be adopted by the present invention.
  • the processing the desktop background image may be to zoom the desktop background image.
  • the zooming process can be implemented by the following method: after obtaining the zoom instruction sent by the user through the computer human-machine interaction device, the current background image data of the desktop is read, and the zoom ratio is calculated according to the instruction, and the background image of the desktop is enlarged or reduced.
  • the bitmap processing interface provided by the system can be called to process, or the processing function can be further processed for processing. The specific implementation process is easily understood by those skilled in the art and will not be described again.
  • a zoom area is determined, and the zoom area is a part of an entire desktop background image or a desktop background image.
  • the command issued by the computer human-machine interaction device determines the range of the zoom area.
  • the zoom area may be considered as the range of the entire desktop background image.
  • the command includes a selection parameter for the zoom area, Get the selected zoom area, which is part of the entire desktop background image.
  • a zoom center is determined, where the zoom center is a desktop center, a zoom center or a location of a computer human-machine interaction device cursor or a given coordinate position.
  • the present invention provides a variety of ways to dynamically scale the desktop background.
  • the zoom position of the desktop background image it can be divided into the desktop background centered zoom and according to the position of the cursor of the computer human-computer interaction device.
  • the zoom center is the center of the desktop, and the center position of the image remains at the center of the desktop during the zooming process; when the position of the cursor of the computer human-computer interaction device is zoomed
  • the zoom center is the position of the cursor.
  • the image position of the cursor position remains unchanged on the desktop.
  • the zoom center is the center of the local area; the zoom center can also be any The given coordinate position.
  • the zoom action can be triggered by a predefined action, such as scrolling up with the mouse wheel or '+, the button triggers the zooming of the desktop background, scrolling down with the mouse wheel or '-, the button triggers the zooming of the desktop background.
  • a predefined action such as scrolling up with the mouse wheel or '+
  • the button triggers the zooming of the desktop background
  • scrolling down with the mouse wheel or '- the button triggers the zooming of the desktop background.
  • the zooming process is as shown in FIG. 4.
  • the specific steps are: responding to the zooming instruction, determining whether it is an enlarged instruction, and if so, obtaining an amplification factor, if not, obtaining a reduction factor, according to the set each zooming operation
  • the scaling factor and the current drawing size (wd, hd) calculate the scaled drawing size (ws, hs), get the width W and height h of the desktop window, calculate the drawing area of the desktop background, and display the desktop background.
  • Ws represents the drawing width of the background image after scaling. It can be calculated by multiplying the current drawing width of the background image by the scaling factor.
  • hs is the height of the background image after scaling. It can be calculated by multiplying the current drawing height of the background image by the scaling factor.
  • the top left corner of the desktop window is the coordinate origin.
  • the position of the zoom center on the desktop window remains unchanged before and after zooming.
  • the width of the desktop window is w
  • the height is h
  • the drawing width of the current desktop background image is wd
  • the drawing height is hd
  • 801 represents the position of the zoom center
  • the coordinates in the desktop window are (xp, yp).
  • the coordinates of the top left corner of the desktop background image on the desktop window are (X, y). Focus on the 801 as the center, and scale the desktop background image.
  • Xs The horizontal coordinate of the top left corner of the scaled desktop background image relative to the top left corner of the desktop window.
  • Ys The vertical coordinate of the top left corner of the zoomed desktop background image relative to the upper left corner of the desktop window.
  • Ws The drawing width of the scaled desktop background image.
  • Hs The height of the zoomed desktop background image.
  • the above (xp, yp) is the coordinates of the mouse on the desktop window.
  • the zoom center, the center of the desktop window, and the background image center are coincident. According to the above principle, the calculation formula of the zoom area is:
  • the desktop background image is stretched and displayed at coordinates (xs, ys) and coordinates (xs).
  • the range of the zoom area is adjusted such that the aspect ratio is close to the aspect ratio of the desktop.
  • the aspect ratio of the zoom area is equal to the aspect ratio of the desktop.
  • the similarity is 1.25/1.333>0.8, indicating similarity.
  • the value of the similarity coefficient of the specific implementation is determined as needed. .
  • the selected local area of the selected desktop background image When the local area of the selected desktop background image is zoomed, the selected local area can be reduced or enlarged, and the local area can be directly enlarged into the desktop background.
  • the selection range is wide.
  • the height ratio is generally different from the aspect ratio of the desktop. Before zooming in on the area, the range of the area needs to be adjusted so that the aspect ratio of the current selected area is close to the aspect ratio of the desktop. In this embodiment, the width of the zoom area is wide.
  • the height ratio is equal to the width and height of the desktop.
  • the height and width of the selection range are hsel, wsel, the height and width of the desktop are hdesk, wdesk, respectively, if hsel/wsel> hdesk/wdesk, the target is full of desktops in the selected range, and the scale is hdesk/hsel. Adjust the width of the selection range according to the aspect ratio of the desktop, so that the aspect ratio of the selection range is close to the aspect ratio of the desktop.
  • the horizontal extent of the range is filled with the desktop, the scaling is wdesk/wsel, and the height of the selection range is adjusted according to the aspect ratio of the desktop, so that the aspect ratio of the selection range is close to the aspect ratio of the desktop.
  • the target center is the center of the desktop. In a continuous zooming process, the target center can follow the zoom effect. The need to change dynamically.
  • the zoom area is moved until its center coincides with the target center.
  • the target center is the center of the desktop, which centers it and zooms in and fills the desktop background.
  • FIG. 6a it is a flowchart of zooming in a local area of a desktop background image according to the present invention.
  • the specific steps are: responding to a mouse frame selection operation, obtaining a current frame selection range, and determining whether a shortcut is selected, if not, according to the above method. Adjust the frame selection range, and calculate the magnification factor, and enlarge the image display within the frame selection range. If yes, send the message back to the system without processing.
  • FIG. 6b which is an example of the selection of the frame selection enlargement area of the present invention
  • the arm portion of the portrait is selected by using the mouse on the desktop background
  • FIG. 6c which is an example of the selection of the frame selection enlargement area of the present invention
  • the arm portion of the portrait is Zoom in to become the desktop background.
  • the processing the desktop background image may also be: moving the desktop background image.
  • Moving the desktop background image may be implemented by pre-defining an operation instruction that triggers the movement of the desktop background, such as pressing a keyboard's direction key to move the command, and when intercepting the direction key pressed command, acquiring the desktop background. Picture, after moving the display position of the desktop background image, redisplay in the desktop background.
  • the step size of the movement is determined, and the step size is a preset value or a cursor movement distance of the computer human-machine interaction device.
  • the value of the step size of each movement may be preset, and each time the movement is performed, only a fixed distance is moved, or the moving distance of the cursor of the computer human-computer interaction device in the intercepted command may be moved.
  • Step size For example, when you get the keyboard's arrow keys to press the command, put the desktop background image
  • the command of the middle button of the mouse is pressed and the mouse cursor is moved to the new position
  • the background image of the desktop is moved according to the direction of the mouse movement, and the mouse is pressed when the middle button is pressed. The distance between the position of the cursor and the new position of the mouse cursor.
  • FIG. 7 is a flowchart of moving a desktop background image according to the present invention
  • the specific steps are as follows: responding to a mouse button press message, recording the mouse position A at this time; responding to the mouse movement message, tracking the mouse movement position B; Determine whether the middle button of the mouse is kept pressed. If the middle button of the mouse has been released, the moving operation is ended. Otherwise, the current position B of the mouse is obtained, and the distance between the current position B of the mouse and the position A is calculated to obtain the offset of the desktop background to be moved. Use this offset to update the position of the desktop background, refresh the display of the desktop, and complete a move.
  • the movement is repeatedly performed until the desktop background image in the opposite direction of the movement exceeds the desktop background portion and is gradually displayed on the desktop background.
  • This embodiment can provide a method for automatically panning the background image of the desktop until the end of the image is displayed.
  • the "Ctrl- ⁇ " key combination can be defined as a command for automatically moving the desktop background image to the right.
  • the current desktop display position is obtained. After moving the picture according to the preset step size, it is displayed on the desktop background, and the previous steps are repeated until the leftmost picture is gradually displayed on the screen.
  • the automatic movement can also be stopped by the user's stop movement command, and the position of the background image of the desktop image desired by the user can be conveniently located.
  • the processing of the desktop background image may also be performed by adding a special effect to the desktop background image.
  • the processing of the background image can also be a special effect, for example, when the background image of the desktop is a portrait, the portrait can be framed, or when the landscape is landscaped, the color transformation processing can be performed to make the desktop background image The display is more beautiful.
  • the special effect is a picture frame modification or a picture pixel level conversion process.
  • the special effects include picture frame decoration, picture pixel level transformation processing, such as lighting effects, relief, Tone adjustment, distortion, etc. For example, by changing the background image to an embossed effect, or by adding a lighting effect to the desktop background.
  • picture frame decoration picture pixel level transformation processing, such as lighting effects, relief, Tone adjustment, distortion, etc.
  • picture pixel level transformation processing such as lighting effects, relief, Tone adjustment, distortion, etc.
  • the image can eventually be converted into a two-dimensional array of pixels that record the color information for each pixel in the image.
  • the color is defined by the saturation of the three colors red, green, and blue, referred to as the three primary colors.
  • the special effect processing of the image can be realized by changing the color value of some or all of the pixels of the image by a certain algorithm.
  • the embossing effect is that only the changed part of the image is highlighted, and the same color part is faded, so that the image has a sense of depth, thereby achieving the relief effect.
  • R, G, B are the primary color values of red, green and blue corresponding to the pixel
  • r, g, b are the primary colors of red, green and blue of the adjacent pixels of the point
  • C is the threshold for determining the relief effect
  • the value is The effect between 100 ⁇ 150) is better, among which the three primary color values after R1, G1 and B1 transformation.
  • the algorithm adopted in this embodiment is that the value of the pixel to be processed is the difference between the pixel and the other pixel on the diagonal, so that only the color change region will appear color, and the color dull region has almost zero difference. Turning black, you can add some brightness by adding a constant C.
  • FIG. 8 is a flowchart of the embossing effect processing on the desktop background image, the specific steps are as follows:
  • the execution of the embossing effect is triggered by an operation, and first an in-memory bitmap is created for saving the processed image. Then, the cache content of the current background image is obtained, and each pixel is looped from the upper left corner to obtain the pixel value of the current position (i, j), which is decomposed into R, G, B, and represents the red, green, and blue primary color values corresponding to the pixel. .
  • the pixel value of the diagonal (i+l, j+l) of the current position is obtained, and is decomposed into r, g, b, which represent the three primary color values of red, green and blue corresponding to the pixel.
  • the transformed three primary color values are calculated by the following formula.
  • C is a constant, and the transformed three primary color values R1, G1, and B1 are calculated. Combine R1, G1, and B1 into pixel values and set them to (i, j) of the memory bitmap. Complete the loop and set the current desktop display background to Built memory bitmap. Refresh the desktop and complete the setup.
  • the method further includes: acquiring and saving display control parameters of the desktop background, wherein the display control parameters are used to control display of the desktop background.
  • the present invention also provides a method of storing the background control parameter of the desktop and a method of restoring the display effect of the background image of the desktop.
  • the display control parameter of the current desktop background is saved when a specific command is obtained, the desktop background changes, or at a specific time
  • the display control parameter content may include: a desktop background image
  • the unique identifier finds the latest one among the saved multiple display control parameters. According to the display control parameter, the last display effect is automatically reproduced, and the repeated operation of the user is avoided.
  • multiple display control parameters can be saved, which represent different display effects.
  • Display control parameters can be stored anywhere, typically in a local file, in a database, on a registry, or on a remote server.
  • the unique identifier is a piece of data that is much smaller than the content of the picture itself, and the fingerprint information of the picture file can be used as the unique identifier.
  • the fingerprint information of the picture file is an identifier generated by each algorithm according to the content, and the same content is generated according to the content;
  • the image file regardless of whether the physical location of the storage is the same, will produce the same unique identifier; the image files of different contents, even if the names are the same, the unique identifiers generated are different.
  • a common method is to use a hash of the contents of the file.
  • a hash function maps a binary string of arbitrary length to a small binary string of fixed length.
  • the hash function has an attribute that it is not computationally likely to find two different input values that are hashed to the same value; that is, the hash values of the two sets of data will only be matched if the corresponding data also matches. match.
  • a small amount of change in data can produce unpredictable large changes in the hash value.
  • the method further comprises: reading display control parameters; displaying a desktop background according to the read display control parameters.
  • Each display control parameter can be used to reproduce the display effect of the desktop background.
  • the display control parameters read here can be read in two ways, one is according to the current desktop background image. The unique identifier of the image file is used to select the display control parameter, and the display control parameters associated with the same image file are sorted by time. If the current display effect has been saved, the previous one is read, and if the current one is not saved, the read is performed. The latest one; another way is to sort all the display control parameters by time and read the previous one in sequence. After the display control parameters are obtained, the image file is obtained according to the parameters saved in the display control parameters, and the desktop background is displayed according to the display scale, display position, and special effects in the parameters.
  • the computer human-machine interaction device may be a keyboard, a mouse, a joystick, a trackball, a touch screen, a stylus or a wireless remote control device, 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 keyboard or a mouse.
  • the command issued by the computer human-machine interaction device may be: clicking a computer human-computer interaction device button issued on the desktop, double-clicking the computer human-computer interaction device, scrolling the scroll wheel of the computer pointing device, and moving the cursor of the computer pointing device Tracks, desktop area selections or specific keys pressed on the keyboard, and combinations of them.
  • the command is issued by a computer pointing device on the desktop of the computer device, that is, a command issued on the desktop background image when the desktop background image is displayed, for example, when the human-computer interaction device is a mouse, the desktop is selected.
  • an operational position map of the desktop background automatic panning of the present invention as an extension of the mobile desktop background of the present invention. It can be displayed on the desktop, the operation location map includes the central area 300, and eight operational response areas are distributed in eight directions around the central area 300: the left area 301, the upper area 302, the right area 303, the lower area 304, and the upper left area 305. , the upper right corner area 306, the lower right corner area 307, and the lower left corner area 308.
  • the operation position map can be triggered by an operation, such as a mouse or button message, or automatically displayed when certain conditions are met, such as when it is detected that the current desktop background display portion is beyond the screen. Using the mouse to click on the areas of operations 301 through 308, the desktop background automatically moves in the direction represented by the current operating area until all portions of the desktop background beyond the desktop are displayed on the desktop or select to stop automatic movement. Automatic movement selects smooth movement or interval movement.
  • the operation position map is not a control such as a button displayed on the desktop, but only provides a prompt function for providing an operation position, and does not convert the command issued by the mouse like the control, so it may not be displayed. As long as the mouse clicks on a specific location, the desktop background image is automatically moved.
  • the automatic mobile operator interface can also be replaced with other operational response methods.
  • the command to automatically move the operator interface is replaced with a mouse action action.
  • a mouse action action For example, press the middle mouse button and note the mouse position at this time.
  • This position represents the 300 area in Figure 9.
  • 8 virtual mouse movement response areas or 8 directions are formed in the surrounding 8 directions.
  • the 8 virtual mouse movement response areas are not necessarily embodied by a specific interface, but are prompted by changing the graphical display of the mouse when the mouse moves to the area, and the desktop background automatically moves along the direction represented by the current area until the desktop The part of the background that exceeds the desktop is displayed on the desktop or you choose to stop automatic movement.
  • a flow of automatically moving a desktop background in response to a mouse operation is illustrated, which specifically includes: responding to a mouse button press message, recording a position of the mouse, and displaying a ready to move mark centered on the position, responding to a mouse movement message, according to The position of the mouse movement calculates the current area, determines whether it needs to move in the direction of the area, and if not, continues to monitor other messages of the mouse. If yes, set the graphical representation of the mouse pointer according to the position of the area, according to the distance from the center point. Set the amount of translation each time, set the movement interval time, start the automatic panning timer, adjust the position of the background in the automatic panning timer, and refresh the display to judge the automatic panning operation. If not, return to the previous step, and if so, turn off the timing. , cancel the display of the panning flag.
  • the mobile desktop background of the present invention in actual use, it is possible to specify a room Multiple display control parameters of the same background image are continuously transferred, and the display effect of the desktop background is reproduced in accordance with each display control parameter. In this way, the continuous transformation effect of the same picture can be automatically displayed according to a preset display scheme.
  • the transformation of the picture center and the image scale can be smoothly and automatically interpolated, or it can be gradually disappeared, which makes the user feel smooth when using, and improves the user experience.
  • the invention can also use the operation instruction of the mouse pointer to a specific area on the screen to complete different operations, preferably defining the command in a 9-square grid manner, and virtually defining the blank area of the desktop after setting the desktop background into 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 the Switch between the previous snapshots, 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 additional control interfaces.
  • similar "4 squares", "6 squares" or other irregular area definitions may be specified, and when the boundaries of these areas do not display or provide visual features, that is, the instruction partitions of the present invention.
  • the zoom of the display content is a must-have feature of most current software, such as image viewing software, media playback software, CAD software, Office software, etc., which provide content zooming function, but as the desktop background most often faced by users, it is not provided. Zoom function.
  • the windows XP operating system is taken as an example to implement the zooming of the desktop background image, and the following steps are specifically included:
  • Step 501 Receive a mouse wheel operation command of the user on the background image of the desktop.
  • the scroll wheel scrolling instruction can be preset to enlarge the desktop background image. After the desktop system receives the message through the message interception, it determines whether the mouse wheel scrolling command is performed on the desktop background image. If yes, continue, if No, no processing, the message is sent back to the desktop system, processed by other code.
  • Step 502 Read the current desktop background image.
  • Step 503 Enlarge the picture.
  • the zoomed position may be the location of the desktop background picture center or the cursor of the computer human-machine interaction device.
  • Step 504 Display the enlarged image on the desktop background.
  • the command sent by the computer human-machine interaction device is received, and the desktop background image is directly processed according to the command.
  • the method further comprises: selecting a target picture from the wallpaper list to draw onto the desktop.
  • the user can perform the predetermined mouse action in a specific area of the desktop to quickly complete the wallpaper switching, which can bring higher operating efficiency.
  • FIG. 12 there is shown a block diagram of a device embodiment 1 of the present invention. Includes:
  • the command receiving unit 1301 is configured to receive a command sent by the computer human-machine interaction device.
  • the processing unit 1302 is configured to directly process the desktop background image according to the command.
  • the command receiving unit 1301 receives the command directly issued by the computer human-machine interaction device, and the processing unit 1302 processes the desktop background image according to the pre-defined processing manner according to the content of the command.
  • FIG. 13 there is shown a block diagram of an apparatus embodiment 2 of the present invention.
  • This embodiment takes the scaling of the desktop background image as an example, and includes:
  • the command receiving unit 1401 is configured to receive a command issued by the computer human-machine interaction device.
  • the scaling processing unit 1402 is configured to perform a scaling process on the desktop background image according to the command. After receiving the zoom command or instruction sent by the user through the computer human-machine interaction device, the command receiving unit 1401 sends the command or instruction to the scaling processing unit 1402, and the scaling processing unit 1402 reads the current desktop background image data according to the command or The instruction calculates the scaling ratio on the desktop background image Zoom in or out.
  • the bitmap processing interface provided by the system may be called to process, or the processing function may be further processed for processing. The specific implementation process is easily understood by those skilled in the art and will not be described.
  • the device further includes a zooming area determining unit 1403, and may be connected to the command receiving unit, and configured to determine a zooming area according to the command, where the zooming area is a part of the entire desktop background image or the desktop background image.
  • a zooming area determining unit 1403 may be connected to the command receiving unit, and configured to determine a zooming area according to the command, where the zooming area is a part of the entire desktop background image or the desktop background image.
  • the zoom area determining unit 1403 determines the range of the zoom area according to the command issued by the computer human-machine interaction device.
  • the zoom area is considered to be the range of the entire desktop background image, and the command includes the selection of the zoom area.
  • the selected zoom area is obtained, which is a part of the entire desktop background image.
  • the device further includes a range adjusting unit 1404, which is connectable to the zooming area determining unit 1403, and is configured to adjust the range of the zooming area so that the aspect ratio is close to the aspect ratio of the desktop, which is equal to an example.
  • a range adjusting unit 1404 which is connectable to the zooming area determining unit 1403, and is configured to adjust the range of the zooming area so that the aspect ratio is close to the aspect ratio of the desktop, which is equal to an example.
  • the selected local area of the selected desktop background image When the local area of the selected desktop background image is zoomed, the selected local area can be reduced or enlarged, and the local area can be directly enlarged into the desktop background.
  • the selection range is wide. The height ratio is generally different from the aspect ratio of the desktop.
  • the range adjusting unit 1404 adjusts the range of the area so that the aspect ratio of the current selected area range is equal to the aspect ratio of the desktop.
  • the device further includes a zoom center determining unit 1405, and may be connected to the range adjusting unit 1404, configured to determine a zoom center according to the command, where the zoom center is a desktop center, the zoom area center, or a computer man-machine The location of the interactive device cursor or the given coordinate location.
  • a zoom center determining unit 1405 may be connected to the range adjusting unit 1404, configured to determine a zoom center according to the command, where the zoom center is a desktop center, the zoom area center, or a computer man-machine The location of the interactive device cursor or the given coordinate location.
  • the present invention provides a variety of ways to dynamically scale the desktop background. According to the zoom position of the desktop background image, it can be divided into the desktop background centered zoom and zoomed according to the position of the cursor of the computer human-computer interaction device. When zooming the center position of the desktop background image, the center position of the image remains at the center of the desktop during zooming; when zooming the position of the cursor of the computer human-machine interaction device, the image position of the cursor at the zooming process Stay the same on the desktop.
  • the apparatus further includes a zooming area moving unit 1406, and may be connected to the zoom center determining unit 1405, for moving the zooming area until the center and the target when the center of the zooming area and the target center do not coincide The center coincides.
  • a zooming area moving unit 1406 may be connected to the zoom center determining unit 1405, for moving the zooming area until the center and the target when the center of the zooming area and the target center do not coincide The center coincides.
  • you select a local area of the desktop background image for zooming you can move the center of the local area to the center of the desktop, center it, and place it on the background of the desktop.
  • the display control parameter saving unit 1407 is further connected to the scaling processing unit 1402 for acquiring and saving the display control parameters of the desktop background, and the display control parameters are used for controlling the display of the desktop background.
  • the display control parameter saving unit 1407 saves the display control parameter of the current desktop background.
  • the display control parameter content may include: a picture corresponding to the desktop background image.
  • the unique identifier of the file, the storage location, the zoom ratio of the desktop background image, the display position on the desktop, the special effects settings, etc. when the desktop background image is repeatedly used as the desktop background, the system according to the unique identifier of the corresponding image file, The latest one is found among the saved multiple display control parameters, and the last display effect is automatically reproduced according to the display control parameter.
  • Multiple display control parameters can be saved for the same desktop background image, representing different display effects.
  • the device further includes
  • the display control parameter reading unit 1408 can be connected to the display control parameter saving unit 1407 for reading the display control parameter.
  • the display control parameter application unit 1409 may be connected to the display control parameter reading unit 1408 for displaying the desktop background according to the read display control parameter.
  • Each display control parameter can be used to reproduce the display effect of the desktop background.
  • the display control parameters read by the display control parameter reading unit 1408 can be read in two ways, one is according to Selecting the display control parameter by the unique identifier of the image file corresponding to the current background image of the desktop, and sorting the display control parameters associated with the same image file by time. If the current display effect has been saved, the previous one is read, if not saved. Currently, the latest one is read; the other way is to sort all the display control parameters by time and read the previous one in sequence.
  • the display control parameter application unit 1409 obtains the picture file according to the parameters saved in the display control parameter, and displays the desktop background according to the display ratio, the display position, and the special effect in the parameter.
  • the device may further include a mobile processing unit, configured to perform a mobile process on the desktop background image according to the command.
  • the mobile processing unit pre-defining the operation instruction for triggering the background of the mobile desktop, such as pressing the arrow key of the keyboard to move the command, and after intercepting the command that the direction key is pressed, acquiring the background image of the desktop, and displaying the position of the background image of the desktop After moving, redisplay in the desktop background.
  • it is also possible to obtain the display scale of the current background image, the display position, and the location of the original file of the desktop background image obtain the image from the file, and move the display position to display on the desktop background.
  • the device further includes a moving step determining unit, configured to determine a step size of the moving according to the command, where the step size is a preset value or a computer human interaction device cursor moving distance.
  • a moving step determining unit configured to determine a step size of the moving according to the command, where the step size is a preset value or a computer human interaction device cursor moving distance.
  • the value of the step size of each movement may be preset, and each time the movement is performed, only a fixed distance is moved, or the moving distance of the cursor of the computer human-computer interaction device in the intercepted command may be moved. Step size.
  • the device further comprises a repetitive moving unit for repeatedly calling the mobile processing unit until the portion of the desktop background image in the opposite direction of the movement exceeds the desktop background is gradually displayed on the desktop background.
  • the background image of the desktop is large and exceeds the visible range of the desktop, the image beyond the desktop portion can be browsed by automatically repeating the movement of the fixed step size.
  • the device may further include a special effect processing unit, configured to perform special effect processing on the desktop background image according to the command, where the special effect is a picture frame modification or a picture pixel level conversion process.
  • the processing of the background image can also be a special effect or the like.
  • the device further includes: a switching processing unit, configured to switch the desktop background image according to the command, that is, directly select a target desktop background image from the wallpaper list, and draw the target desktop background image to On the desktop.
  • a switching processing unit configured to switch the desktop background image according to the command, that is, directly select a target desktop background image from the wallpaper list, and draw the target desktop background image to On the desktop.
  • the computer human-machine interaction device may be a keyboard, a mouse, a joystick, a trackball, a touch screen, a stylus or a wireless remote control device, and is not limited to these devices.
  • These computer pointing devices can send operational commands to the computer device through the communication interface to implement control operations on the computer device, and the most widely used one is a keyboard or a mouse.
  • the apparatus may further include: two or more of a scaling processing unit, a movement processing unit, a special effect processing unit, and a switching processing unit.
  • a scaling processing unit may further include: two or more of a scaling processing unit, a movement processing unit, a special effect processing unit, and a switching processing unit.
  • the specific implementation process is similar to the implementation process of the apparatus including the scaling processing unit, and is not mentioned here.
  • the device may further include: an instruction partition processing unit, configured to receive a computer man-machine
  • the command sent by the interaction device determines, according to the command, an instruction partition where the cursor is located when the human-machine interaction device issues an instruction, and executes an instruction preset by the instruction partition.
  • the command includes at least the following:: clicking a computer human-computer interaction device button on the desktop, double-clicking the computer human-computer interaction device, scrolling the scroll wheel of the computer pointing device, moving the track of the computer pointing device cursor, and the desktop area Frame or press a specific key on the keyboard, and a combination of them.
  • the boundaries of the instruction partition of the present invention do not display or provide visual features when the pointing device enters the corresponding instruction partition.
  • the command is a mouse command, but is not limited thereto.
  • Other devices or areas for issuing commands are similar to the mouse;
  • the backup desktop background image has three, and the desktop background image list including the index and the path is as shown in Table 1 (that is, the wallpaper list):
  • the desktop instruction partition list is as shown in FIG. 14.
  • the desktop instruction partition list is a method for dividing the area according to the rule, for example, the right side of the desktop is divided into four areas (which can be arbitrarily divided), in order not to hinder the user's use, the instruction name and the area division in the desktop
  • the line is invisible during normal use.
  • the dividing line or boundary of the display area can be set at the beginning of guiding the user.
  • the current desktop background image has an index of n in the list of desktop instruction partitions.
  • 1501 starts a shortcut for the application
  • 1502 is the instruction partition
  • 1503 is the instruction partition split line
  • 1504 is the operation guide prompt icon of the instruction partition 3
  • 1505 is the instruction partition boundary.
  • each instruction partition that is, the mapping relationship between the instruction partition on the desktop and the command to be executed after receiving a specific mouse instruction (that is, the desktop instruction partition list) is as follows:
  • the first command partition is double-clicked to enlarge the current wallpaper 20%;
  • the second command partition is double-clicked to reduce the current wallpaper 20%
  • the n-1th picture in the wallpaper list is set as the desktop wallpaper; the fourth command partition is set to the desktop wallpaper after the mouse double click, and the n+1th picture in the wallpaper list is set.
  • the instruction partition and its boundary and split line usually only have specific coordinate attributes to determine the area where the mouse cursor is located.
  • the split line is also the element that constitutes the boundary of the command area.
  • the boundary of the instruction partition of the present invention does not display or provide visual features when the pointing device enters or exits the corresponding instruction partition, and may also be other visualization features.
  • a partial hint icon similar to 1504 can avoid affecting the display effect of the entire desktop wallpaper.
  • the 1504 guide prompt icon is optional and can be briefly displayed after the mouse enters the area to serve as a prompt, the prompt icon and the regular command.
  • a button or a command icon does not require a response command, and its size is usually smaller than the corresponding instruction partition size, and is not necessarily located within the instruction partition.
  • the arrows in Fig. 15 suggest that the user will switch the wallpaper to the previous picture in the wallpaper list after double-clicking in the area.
  • the coordinate quantization and area determination of the instruction partition boundary should be easily completed by those skilled in the art, and is not specific here. Expand the description. After making the above settings, the following describes its response process:
  • the current wallpaper is the second one, which is C: ⁇ photo ⁇ 2.jpg. Detects the operation command of the mouse. If it detects that the mouse double-clicks the mouse in the first command partition, it performs the operation of enlarging the current wallpaper by 20%.
  • the current wallpaper is reduced by 20 % operation, if it detects that the mouse double-clicks the mouse in the 3rd command partition, it performs the operation of setting the first picture "C: ⁇ photo ⁇ LJpg" as the desktop wallpaper, if it detects that the mouse is double-clicked in the 4th command area When the mouse is over, the operation of setting the third picture, "C: ⁇ photo ⁇ 3.jpg", to the desktop wallpaper is performed.
  • the desktop icons are schematic diagrams of the instruction partitions displayed on the desktop.
  • a schematic diagram of the instruction partitions on the desktop when the desktop icons are hidden is also provided, as shown in FIG.
  • the method includes: 1601 is an instruction partition, 1602 is an instruction partition dividing line, and 1603 is an operation guidance prompt icon of the instruction partition 3 (such as closing all active applications or clicking a mouse in this area to switch to the next A desktop background image, etc.), 1604 is the instruction partition boundary, and the application is launched by clicking a mouse on different areas of the desktop.
  • Different response definitions can be established for different human-computer interaction device operation actions in one instruction partition.
  • the first instruction partitions respectively establish response definitions for mouse clicks and double-clicks.
  • This embodiment also adopts an irregular area division method.
  • the application shortcut is hidden, and the middle of the desktop is divided into three areas, each instruction partition.
  • the command response is defined as follows:
  • the first instruction partition instruction 1 starts the mail client after double-clicking the mouse
  • the first instruction partition instruction 2 after clicking the mouse, start the Internet browser;
  • Detecting the operation instruction of the mouse if detecting that the mouse double-clicks the mouse in the first instruction partition, executing the startup instruction of the mail client; if it detects that the mouse is clicked in the first instruction partition, the Internet browser is started; if the mouse is detected When the second instruction partition is clicked, the office component word is started; if it is detected that the mouse is clicked in the third instruction partition, it is only necessary to close all application operations.
  • the operation prompt of this embodiment adopts a popular mouse tracking prompt form, and the operation prompt is activated when the mouse enters the instruction partition for a short time.
  • the size of the instruction partition and its position can be transformed according to actual needs.
  • the number of instruction partitions, the size of the boundary, and the choice of the mode of operation are all variable.
  • the instruction partition can be divided according to the actual needs. For the specific implementation process, refer to the foregoing embodiment, and details are not described herein.
  • processing unit in the apparatus may further include: at least two units of the scaling processing unit, the mobile processing unit, and the special effect processing unit switching processing unit.
  • the functions and functions of the various units are described above, and are not described here.
  • the present invention further provides an interface system of an operating system desktop, and a block diagram of an embodiment thereof is shown in FIG. 16, and includes: a background picture display unit 1701, a shortcut processing unit 1702, a command receiving unit 1703, and a processing unit 1705.
  • the processing unit 1705 further includes: a scaling processing unit 17051, a movement processing unit 17052, a special effect processing unit 17053, and a switching processing unit 17054.
  • the figure includes four units as an example, and may also include at least one of the four units. .
  • the background image display unit 1701 serves as a main object of the desktop, covering the main area of the entire desktop, and functions to beautify the desktop;
  • the shortcut processing unit 1702 is responsible for managing the application shortcut icon and the corresponding program path, on the background.
  • the application shortcut icon is displayed, and the corresponding program is started according to the user instruction; in addition, the menu for starting the application can also be regarded as a shortcut.
  • the command receiving unit 1703 is configured to receive a command sent by a computer human-machine interaction device, and identify a background image processing command;
  • the processing unit 1705 is configured to use the background image
  • the processing command directly processes the background image in the background image display unit, and the processing result is drawn by the processing unit or the background image display unit onto the desktop background.
  • the command processing unit presets to push the mouse wheel forward to enlarge the command or instruction in the blank area of the desktop (the large area covered by the application shortcut), and the processing unit 1705 determines the cursor position when receiving the mouse operation command or instruction. Whether it is located in the blank area of the desktop and whether the mouse wheel is pushed forward, if the predetermined condition is satisfied, the processing unit 1705 completes the enlargement operation of the background picture.
  • the processing unit 1705 includes at least one of the following: a scaling processing unit 17051, a mobile processing unit 17052, a special effect processing unit 17053, and a switching processing unit 17504.
  • the scaling processing unit 17051 is configured to perform a scaling process on the desktop background image according to the command;
  • the mobile processing unit 17052 is configured to perform a mobile processing on the desktop background image according to the command;
  • the unit 17053 is configured to perform special effect processing on the desktop background image according to the command, where the special effect processing refers to a process of modifying a picture frame or converting a picture pixel level.
  • the switching processing unit 17504 is configured to directly select a target desktop background image from the wallpaper list according to the command, and draw the target desktop background image to the desktop. It can also be used to directly switch the desktop background image according to the command and the preset mapping relationship.
  • the embodiment of the present invention may further include: an instruction partition processing unit 1704, where the instruction partition processing unit 1704 is configured to receive a command sent by the computer human-machine interaction device, and determine, according to the command, the human-machine interaction device to issue an instruction.
  • the instruction partition processing unit manages the setting of the preset area, including the boundary of the area and the issuance of the operation instruction and the corresponding command, for example, the instruction unit management is as follows: occupying the screen 1/8 range in the lower right corner of the screen
  • the click of the mouse command corresponds to shrinking the desktop background by 20%
  • the double-clicking mouse command in the upper right corner of the screen in the range of 1/8 of the screen corresponds to enlarging the desktop background by 20%.
  • the lower right corner occupies the screen.
  • the command unit When clicked within the range of 1/8, the command unit will issue a command to enlarge the desktop by 20%, which is executed by the desktop background processing unit.
  • the instruction partition processing technique can also be used for application startup when a corresponding command for a particular region is preset to launch a particular application.
  • the operating system desktop interface system of the invention solves the problem that the existing desktop system does not support flexible adjustment
  • the problem of the desktop background display effect improves the convenience and humanity of the interface.
  • the invention may be implemented using Windows ActiveDesktop technology.
  • Windows XP ActiveDesktop provides a programming interface that allows the user to specify a web page as the desktop, and the background file needs to be entered when the background file is set.
  • 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.
  • an ActiveDesktop interface method such as AddDesktopItem (adding a desktop item) is added to the desktop to display a desktop item of a specified webpage (a maximum effect can be achieved when maximizing).
  • the web page is displayed on the desktop background, under the desktop shortcut, and integrated with the desktop.
  • the image to be operated as the background of the desktop is displayed in the web page added to the desktop, and the built-in object in HTML (Hyper Text Link Markup Language) can be used to complete the zooming operation.
  • HTML Hyper Text Link Markup Language
  • the related scaling operation can also be performed in a window or a dynamic webpage component on the webpage, and the window can be implemented in the webpage by using an HTML object simulation, such as an event response function provided by DHTML (Dynamic Hypertext Markup Language).
  • an HTML object simulation such as an event response function provided by DHTML (Dynamic Hypertext Markup Language).
  • scripts such as JavaScript, etc.
  • dynamic webpage components such as flash can also be used to control the zooming operation of the image.
  • the access to the desktop attribute can be added to the webpage component and the corresponding operation can be performed, for example, different response actions can be taken according to the relationship between the mouse position and the desktop shortcut: When the box is selected. It is possible to decide whether or not to perform a partial enlargement operation depending on whether or not a shortcut is selected.
  • the webpage can be automatically designated as the desktop background, and a function menu or button for calling the ActiveDesktop to designate the webpage as the desktop background is also provided on the webpage, when the user selects the menu. When the button is pressed, this page is designated as the desktop.
  • the provided webpage can be saved in a local computer device or stored on a remote server, and the user can access the webpage through a network protocol (such as ftp or http).
  • the invention can also be applied to a mobile device or a digital TV set-top box and the like. Since there is no mouse device, the operation thereof is mainly operated by a keyboard or a remote controller, except for the operation instructions of the background operation thereof.
  • the method of implementation is similar to the previous embodiment except that the mode of transmission is slightly different.
  • 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.
  • the present invention does not need to repeatedly open a menu or a dialog box to perform a setting operation on a desktop background image, and directly processes the desktop background image, and directly reflects the processing effect on the desktop after each processing. , can significantly reduce the operation steps, saving user time.
  • No need for additional image editing software to special effects on the desktop background image you can directly add special effects to the desktop background image, and beautify the desktop background image display effect.

Abstract

Method for processing desktop backgrounds, which includes steps of receiving a command from human-computer interaction device, and directly processing the desktop background picture according to the command. An apparatus for processing desktop backgrounds, which includes command receiving unit for receiving commands from the human-computer interaction device; processing unit for directly processing the desktop background picture according to the command. An interface system for OS desktop.

Description

处理桌面背景的方法、 装置及操作系统桌面的界面系统 本申请要求于 2006 年 11 月 30 日提交中国专利局、 申请号为 200610145986.7、 发明名称为"一种处理桌面背景的方法及装置"的中国专利申 请的优先权, 其全部内容通过引用结合在本申请中。  Method for processing desktop background, device and operating system desktop interface system The present application claims to be submitted to the Chinese Patent Office on November 30, 2006, the application number is 200610145986.7, and the invention name is "a method and device for processing desktop background". Priority of the patent application, the entire contents of which is incorporated herein by reference.
技术领域 Technical field
本发明涉及背景处理领域,特别是涉及一种处理桌面背景的方法、装置及 操作系统桌面的界面系统。  The present invention relates to the field of background processing, and in particular, to a method and apparatus for processing a desktop background and an interface system of an operating system desktop.
背景技术 Background technique
在计算机系统中, 为方便用户使用,把启动各种操作系统功能及应用程序 的快捷链接以图形方式表示出来,放置在计算机显示器的屏幕上显示, 并且能 够依据用户对这些快捷链接的操作来启动相应的应用程序或执行相应的功能, 按照 Windows的命名习惯, 这种快捷链接也叫做快捷方式或快捷方式图标。 快捷链接还可能用菜单项或者控件按钮作为表现形式,它们可能直接展现于屏 幕的显示中, 也可能分类、 分级显示, 这个屏幕显示的画面称为计算机系统的 桌面, 同时, 还可以把图片设置成桌面背景, 使屏幕显示更丰富多彩。 桌面背 景占据了桌面的大部分区域, 合理的设置桌面背景, 可以使桌面美观、使用者 心情愉快, 使计算机更加人性化。  In the computer system, for the convenience of the user, 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, according to the Windows naming convention, this shortcut link is also called shortcut or shortcut icon. Quick links may also use menu items or control buttons as expressions. They may be displayed directly on the screen, or they may be classified and displayed. The screen displayed on this screen is called the desktop of the computer system. At the same time, the pictures can be set. As a desktop background, make the screen display more colorful. The desktop background occupies most of the desktop area, and the desktop background is reasonably set, which makes the desktop beautiful, the user feels happy, and makes the computer more human.
目前对桌面背景图片的处理方法主要是使用操作系统为用户提供的桌面 背景图片处理程序, 使用时, 需要打开相关的功能界面才能操作。 例如在 windows XP计算机操作系统中, 操作系统提供了桌面背景图片的拉伸、 平铺 和居中三种方式的显示状态的处理功能,这些功能需要由用户进行多步操作才 能实现。 比如要选择" D: \我的文档\我的图片\背景 2.jpg"作为桌面背景, 需要 先在桌面的右键快捷菜单中选择菜单项的 "属性 "项,在打开的对话窗口中选择 "背景 "选项页, 再选择"浏览"按钮, 打开文件选择对话框, 在对话框中依次选 择并打开本地磁盘 D盘、 "我的文档"和"我的图片"目录, 然后在文件列表中选 择"背景 2.jpg"文件, 选择"确定"按钮, 然后才能选择图片的处理方式, 可以设 置成平铺、 居中或者拉伸等处理, 最后再选"确定"按钮, 把所选图片按照选择 的处理方式进行处理后显示在桌面背景上。 当需要调整显示效果时, 需要重复 进入上述界面重新选择处理方式。 在显示效果方面, windows XP中提供的居中状态可以把图片显示在桌面 背景中心的固定区域内; 平铺状态可以把小图片重复显示在整个桌面背景上, 对于大图片, 只显示图像的左上角的部分; 拉伸状态把图片按照整体自适应充 满整个桌面背景。 现有网上的"壁纸"图片 (桌面背景所用的图片文件)分辨率 通常都由人为调整为适应普通显示器分辨率的 1024*768, 随着大尺寸和宽屏 显示器的逐步普及和高分辨率图片 (如 2000* 1500分辨率)的使用, 现有的桌 面背景图片处理方法存在如下问题: At present, the processing method of the desktop background image is mainly to use the desktop background image processing program provided by the operating system for the user, and the related function interface needs to be opened to operate. For example, in the Windows XP computer operating system, the operating system provides the processing functions of the display state of the three methods of stretching, tiling and centering of the desktop background image, and these functions need to be performed by the user in multiple steps. For example, to select "D:\My Documents\My Pictures\Background 2.jpg" as the desktop background, you need to select the "Properties" item of the menu item in the context menu of the desktop, and select "In the dialog window that opens". Background "Options page, then select the "Browse" button, open the file selection dialog box, select and open the local disk D drive, "My Documents" and "My Pictures" directory in the dialog box, then select in the file list "Background 2.jpg" file, select the "OK" button, and then you can choose how the image is processed. You can set it to tiling, centering or stretching. Finally, select the "OK" button and select the selected image according to the selection. The way it is processed is displayed on the desktop background. When you need to adjust the display effect, you need to repeatedly enter the above interface to re-select the processing method. In terms of display effect, the centered state provided in Windows XP can display the image in a fixed area in the center of the desktop background; the tiled state can repeatedly display small images on the entire desktop background, and for large images, only the upper left corner of the image is displayed. The stretched state fills the image with the entire adaptive desktop background as a whole. The resolution of the existing "wallpaper" image (the image file used for desktop background) is usually adjusted to 1024*768 which is suitable for the resolution of ordinary display, with the gradual popularization of large-size and wide-screen displays and high-resolution pictures ( For example, if the resolution of 2000* 1500 is used, the existing desktop background image processing method has the following problems:
1、 当需要对桌面背景图片进行处理时, 必需要进入菜单或对话框进行处 理选择, 用户操作步骤多, 不方便。  1. When you need to process the desktop background image, you must enter the menu or dialog box to process the selection. The user has many steps and is inconvenient.
2、 只提供了平铺、 居中或者拉伸三种处理方式, 处理方式有限, 而且会 造成显示不完整或者显示变形等问题, 不能很好处理桌面背景图片的效果。  2. Only three treatment methods: tiling, centering or stretching are provided. The processing method is limited, and the display may be incomplete or display deformation, and the effect of the desktop background image may not be well handled.
3、 对于高分辨率图片来说, 在拉伸处理后, 按照图片尺寸充满整个桌面 背景,或者只显示在屏幕中心或者只显示图片的左上角, 不能满足用户直接将 图片的指定区域放大或直接放大为桌面背景的需求。  3. For high-resolution images, after stretching, fill the entire desktop background according to the size of the image, or just display it in the center of the screen or just the top left corner of the image. It is not enough for the user to directly enlarge or directly specify the specified area of the image. Zoom in to the needs of the desktop background.
4、 在用户要将一幅大图的局部设置为桌面背景之前, 需要使用图片编辑 软件对图片进行裁减后再设置成桌面背景,但当再次调整显示的图片部分的时 候, 又得重复同样的操作,繁瑣的操作步骤让用户失去了设置桌面背景图片显 示效果的兴趣。  4. Before the user wants to set a part of a large picture as the desktop background, it is necessary to use the image editing software to cut the picture and then set it to the desktop background, but when the picture part of the display is adjusted again, the same Operation, cumbersome steps make the user lose interest in setting the background image of the desktop.
可见,现有的桌面背景图片的处理方法存在着操作不方便、不能很好处理 桌面背景图片显示效果的问题。  It can be seen that the existing processing method of the desktop background image has the problem that the operation is inconvenient and the desktop background image display effect cannot be well handled.
发明内容 Summary of the invention
本发明所要解决的技术问题是提供一种处理桌面背景的方法、装置及操作 系统桌面的界面系统 ,以解决现有技术中存在的需要借助菜单或对话框才能完 成操作且不能快速控制显示效果的问题。  The technical problem to be solved by the present invention is to provide a method and a device for processing a desktop background and an interface system of an operating system desktop, so as to solve the problem in the prior art that a menu or a dialog box is required to complete the operation and the display effect cannot be quickly controlled. problem.
为解决上述技术问题, 本发明公开一种处理桌面背景的方法, 包括步骤: 接收计算机人机交互设备发出的命令;  In order to solve the above technical problem, the present invention discloses a method for processing a desktop background, including the steps of: receiving a command issued by a computer human-machine interaction device;
根据所述命令, 直接对桌面背景图片进行处理。  According to the command, the desktop background image is directly processed.
本发明还提供一种处理桌面背景的装置, 包括:  The invention also provides an apparatus for processing a background of a desktop, comprising:
命令接收单元 , 用于接收计算机人机交互设备发出的命令; 处理单元, 用于根据所述命令, 直接对桌面背景图片进行处理。 本发明再提供一种操作系统桌面的界面系统,包括快捷方式处理单元和背 景图片显示单元, 还包括: a command receiving unit, configured to receive a command issued by a computer human-machine interaction device; The processing unit is configured to directly process the desktop background image according to the command. The invention further provides an interface system of an operating system desktop, comprising a shortcut processing unit and a background image display unit, and further comprising:
命令接收单元,用于接收计算机人机交互设备中所述快捷键单元发出的命 令,, 识别出背景图片处理命令;  a command receiving unit, configured to receive a command issued by the shortcut key unit in the computer human-machine interaction device, and identify a background image processing command;
处理单元, 用于根据所述命令, 直接对背景图片显示单元中的桌面背景图 片进行处理。  And a processing unit, configured to directly process the desktop background image in the background image display unit according to the command.
与现有技术相比, 本发明具有以下优点:  Compared with the prior art, the present invention has the following advantages:
本发明首先接收计算机人机交互设备发出的命令;根据所述命令, 直接对 桌面背景图片进行处理。无需多次重复打开菜单或对话框对桌面背景图片进行 处理方式的设定操作, 直接对桌面背景图片进行处理,每次处理之后直接在桌 面上反映处理效果, 可以显著减少操作步骤, 节约用户时间。  The invention first receives a command issued by a computer human-machine interaction device; according to the command, directly processes a desktop background image. It is not necessary to repeatedly open the menu or dialog box to set the processing mode of the desktop background image, directly process the desktop background image, and directly reflect the processing effect on the desktop after each processing, which can significantly reduce the operation steps and save user time. .
附图说明 DRAWINGS
图 1是本发明的桌面布局示意图;  1 is a schematic diagram of a desktop layout of the present invention;
图 2是本发明的对桌面的子类化流程图;  2 is a flow chart of subclassing the desktop of the present invention;
图 3是本发明处理桌面背景的方法实施例 1流程图;  3 is a flow chart of Embodiment 1 of a method for processing a desktop background according to the present invention;
图 4是本发明的桌面背景居中缩放流程图;  4 is a flow chart of the centering zoom of the desktop background of the present invention;
图 5是本发明的对光标所在位置进行缩放的尺寸示意图;  Figure 5 is a schematic view showing the size of the zoom position of the cursor of the present invention;
图 6a是本发明的对桌面背景图片局部区域进行缩放流程图;  6a is a flow chart of scaling a local area of a desktop background image according to the present invention;
图 6b是本发明的框选放大区域选择示例图;  Figure 6b is a diagram showing an example of selection of a frame selection enlargement area of the present invention;
图 6c是本发明的框选放大后的效果图;  Figure 6c is an enlarged effect view of the frame selection of the present invention;
图 7是本发明的对桌面背景图片进行移动流程图;  7 is a flow chart of moving a desktop background image according to the present invention;
图 8是本发明对桌面背景图片进行浮雕效果处理的流程图;  8 is a flow chart of the embossing effect processing of the desktop background image according to the present invention;
图 9是是本发明的桌面背景自动平移的操作位置图;  Figure 9 is an operational position diagram of the automatic translation of the desktop background of the present invention;
图 10是本发明的响应鼠标操作自动移动桌面背景的流程图;  Figure 10 is a flow chart of the automatic moving desktop background in response to mouse operation of the present invention;
图 11是本发明处理桌面背景的方法实施例 2流程图;  11 is a flow chart of Embodiment 2 of a method for processing a desktop background according to the present invention;
图 12是本发明处理桌面背景的装置实施例 1框图;  Figure 12 is a block diagram of an embodiment 1 of an apparatus for processing a desktop background of the present invention;
图 13是本发明处理桌面背景的装置实施例 2框图;  Figure 13 is a block diagram of an embodiment 2 of an apparatus for processing a desktop background of the present invention;
图 14是本发明桌面指令分区列表的示意图; 图 15是本发明桌面图标被隐藏时桌面上指令分区的示意图; 14 is a schematic diagram of a desktop instruction partition list of the present invention; 15 is a schematic diagram of an instruction partition on a desktop when the desktop icon of the present invention is hidden;
图 16是本发明操作系统桌面的界面系统的实施例框图。  16 is a block diagram of an embodiment of an interface system of an operating system desktop of the present invention.
具体实施方式 detailed description
为使本发明的上述目的、特征和优点能够更加明显易懂, 下面结合附图和 具体实施方式对本发明作进一步详细的说明。  The present invention will be further described in detail with reference to the accompanying drawings and specific embodiments.
本发明的实施例可以应用于使用 windows XP操作系统的计算机设备中, 但不局限于于此,本领域的普通技术人员容易理解,本发明可以应用于任何具 有显示器和处理器的计算机设备中,如 PDA、 手机、 数字电视机顶盒、 笔记本 电脑或者 PC机等。  The embodiments of the present invention can be applied to a computer device using the Windows XP operating system, but are not limited thereto, and those skilled in the art will readily understand that the present invention can be applied to any computer device having a display and a processor. Such as PDA, mobile phone, digital TV set-top box, laptop or PC.
以 windows XP为例, 桌面的一种典型布局是如图 1所示, 包括桌面窗口 Take Windows XP as an example. A typical layout of the desktop is shown in Figure 1, including the desktop window.
201、 桌面背景 202、 快捷方式 203、 快捷方式区域 204和空白区域 205, 还包 括任务栏 206, 用于负责任务调度和切换, "开始 "按钮 207用于以菜单模式调 出更多启动链接。 桌面背景 202是覆盖于桌面窗口 201之上的一个图片(也可 以由用户取消图片而代之以单色背景)。 201. The desktop background 202, the shortcut 203, the shortcut area 204, and the blank area 205 also include a task bar 206 for task scheduling and switching, and a "Start" button 207 for calling up more startup links in the menu mode. The desktop background 202 is a picture overlaid on the desktop window 201 (the picture can also be cancelled by the user and replaced with a monochrome background).
某些操作系统也支持多桌面切换。例如,一种 linux操作系统有 4个桌面, 可以由用户任意切换, windows XP虽然没有直接提供多个桌面, 但提供了创 建多个桌面的编程接口。  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.
另夕卜,在第三方软件中还有一类虚拟桌面软件,这类软件的特点是可以支 持创建多个桌面。跟操作系统提供的多个桌面的目的类似,虚拟桌面的主要功 能是提供更灵活的应用程序快捷方式分组管理以适应不同的工作环境需求。虚 拟桌面可能是独立的完整的具有操作系统桌面控制功能的替代程序,也可能是 基于现有操作系统桌面功能的功能扩展程序。  In addition, there is a type of virtual desktop software in third-party software that is characterized by the ability to create multiple desktops. Similar to the purpose of multiple desktops provided by the operating system, the main function of virtual desktops is to provide more flexible application shortcut group management to suit different work environments. A virtual desktop may be a stand-alone, stand-alone alternative to operating system desktop control, or a functional extension based on existing operating system desktop features.
下面介绍对 windows XP操作系统缺省桌面进行子类化并实施本发明达到 无可视界面调整桌面背景显示效果的过程。  The following describes the process of subclassing the default desktop of the Windows XP operating system and implementing the present invention to achieve a visual background display without a visual interface.
在现有的 windows XP操作系统中,桌面没有提供对鼠标在桌面背景区域 的选择操作和滚轮操作的响应,要实施本发明,可以通过接管桌面窗口对消息 的响应过程, 然后使用代码根据鼠标的操作进行响应, 控制桌面的输出效果。 本发明通过对桌面的子类化完成对桌面的人机交互消息的截取,经过对消息进 行分析过滤后, 在收到特定消息时调用 API (应用程序编程接口)来实现对桌 面显示内容的操作和对桌面显示过程的控制。本发明还通过对桌面窗口的跨进 程子类化完成对桌面的控制,截获桌面窗口的消息, 实现在桌面背景区域上的 显示控制以及交互操作。 对桌面的子类化流程图如图 2, 具体包括: 首先安装 系统钩子函数, 并向资源管理器发送子类化消息, 该消息触发系统钩子函数, 操作系统自动将包含钩子函数的 DLL (动态链接库 )加载到资源管理器进程, 接着执行钩子函数, 系统钩子函数响应消息, 完成桌面窗口的子类化。 为了避 免影响系统性能,完成子类化操作后即可增加 DLL引用将 DLL保持在资源管 理器进程中,取消该系统钩子。至此完成桌面消息的拦截和处理代码与桌面的 集成, 处理代码可以接收桌面上用户的键盘、 鼠标或其它计算机指点设备的操 作信息, 并对相应的消息作出响应。 In the existing Windows XP operating system, the desktop does not provide a response to the selection operation and scrolling operation of the mouse in the background area of the desktop. To implement the present invention, the response process of the message can be taken over by the desktop window, and then the code is used according to the mouse. The operation responds by controlling 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, calling the API (application programming interface) to implement the table when receiving the specific message. The display of content and the control of the desktop display process. The invention also completes the control of the desktop by sub-process sub-classification of the desktop window, intercepts the message of the desktop window, and realizes display control and interactive operation on the background area of the desktop. The subclassing flowchart of the desktop is as shown in FIG. 2, 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. In order to avoid affecting system performance, after completing the subclassing operation, you can increase the DLL reference to keep the DLL in the resource manager process and cancel the system hook. This completes the interception of the desktop message and the integration of the processing code with the desktop. 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.
通过子类化只是在 windows操作系统中获取指点设备的在桌面上的操作 信息的方法之一, 并不构成对本发明的限制,具体实施时也可以通过其他途径 来实现, 比如创建可以接收指点设备操作信息的对象来接收相关信息、定期检 测指点设备操作信息等方法都是可以的,在不同的操作系统上,其实现方法也 可能有差异, 而对于操作系统开发商, 其实现方法则可以更直接。  One of the methods for obtaining the operation information of the pointing device on the desktop in the Windows operating system is not limited to the present invention. The specific implementation may also be implemented by other means, such as creating a pointing device. It is possible to receive information about the object of the operation information and periodically detect the operation information of the pointing device. The implementation method may be different on different operating systems, and for the operating system developer, the implementation method may be more direct.
参照图 3 , 是本发明的方法实施例 1流程图, 包括:  Referring to FIG. 3, it is a flowchart of Embodiment 1 of the method of the present invention, which includes:
步骤 401 , 接收计算机人机交互设备发出的命令。  Step 401: Receive a command issued by a computer human-machine interaction device.
所述命令由计算机人机交互设备直接发出的,是计算机人机交互设备直接 发出的动作命令, 例如, 是按键按下、 双击、 光标位置移动或者滚轮转动等直 接命令, 不是由计算机人机交互设备的通过点击屏幕上显示的按钮、选择框等 相关控件,再由控件发出的功能指令。后续步骤中根据这种直接命令对桌面背 景图片进行处理,减少了用户操作的步骤,节约了用户时间,提高了操作效率。  The command is directly issued by the computer human-computer interaction device, and is an action command directly sent by the computer human-computer interaction device, for example, a direct command such as a button press, a double click, a cursor position movement or a wheel rotation, and is not a human-computer interaction by a computer. The function command issued by the control by clicking the button, selection box and other related controls displayed on the screen. In the subsequent steps, the desktop background image is processed according to the direct command, which reduces the steps of the user operation, saves the user time, and improves the operation efficiency.
所述人机交互设备是和计算 目连接的输入设备, 比如, 键盘、 鼠标、 摇 杆、 跟踪球、 触摸屏、 手写笔或者无线遥控装置; 用于输入用户的命令。 所述 命令可以是特定按键,也可以是特定按键的组合,还可以是滚轮或跟踪球等设 备的滚动或者其和特定按键的组合,例如,可以是键盘的 Ait t,或者是 swft 和 Ctrl按键的组合,也可以是 Ctrl和→按键的组合,还可以是按住鼠标左键移 动鼠标所进行的框选动作。  The human-machine interaction device is an input device connected to a computing device, such as a keyboard, a mouse, a joystick, a trackball, a touch screen, a stylus or a wireless remote control device; a command for inputting a user. The command may be a specific button, or a combination of specific buttons, or a scrolling of a device such as a scroll wheel or a trackball or a combination thereof with a specific button, for example, Ait t of the keyboard or swft and Ctrl buttons. The combination can also be a combination of Ctrl and → buttons, or a frame selection action by holding down the left mouse button to move the mouse.
步骤 402, 根据所述命令, 直接对桌面背景图片进行处理。 按前述方法进行了对 windows XP桌面窗口执行子类化操作后, 桌面系统 可以拦截到计算机人机交互设备 (如鼠标)在桌面上的发出的直接命令, 根据 命令的内容, 触发程序代码按照预先定义的处理方式对桌面背景图片进行处 理。本步骤中, 不需要经过将显示在屏幕上的控件的操作消息转换为功能指令 的方式来驱动后续处理,可直接按照所述命令对桌面背景图片进行处理并在桌 面背景上立即反应处理效果。 Step 402: Process the desktop background image directly according to the command. After performing the subclassing operation on the windows XP desktop window as described above, the desktop system can intercept the direct command issued by the computer human-computer interaction device (such as a mouse) on the desktop, and according to the content of the command, the trigger program code is pre- The defined processing method is to process the desktop background image. In this step, the subsequent processing is not required to be converted into a function instruction by converting the operation message of the control displayed on the screen, and the desktop background image can be directly processed according to the command and the processing effect is immediately reflected on the desktop background.
步骤 402的具体过程可以是,获取当前桌面背景图片,根据指令的具体功 能, 对桌面背景图片进行处理, 将处理后的桌面背景图片显示在桌面上。 处理 的结果是改变了桌面显示的外观效果。这里可以采用在内存中建立緩存区,把 当前桌面显示内容数据拷贝到緩存区内, 直接对緩存区的数据进行处理,处理 完后,再把数据拷贝回当前桌面背景中去; 也可以采用直接对桌面背景的图像 数据进行处理的办法。本领域一般技术人员可以理解, 只要实现了直接对桌面 背景显示内容数据进行处理的方法, 都是本发明可以采用的方法。  The specific process of step 402 may be: acquiring a current background image of the desktop, processing the desktop background image according to the specific function of the instruction, and displaying the processed desktop background image on the desktop. The result of the processing is to change the appearance of the desktop display. Here, it is possible to create a buffer area in the memory, copy the current desktop display content data into the buffer area, directly process the data of the buffer area, and then copy the data back to the current desktop background after processing; or directly The method of processing the image data of the desktop background. Those skilled in the art can understand that the method that can directly process the desktop background display content data is a method that can be adopted by the present invention.
优选的 , 所述对桌面背景图片进行处理可以是对桌面背景图片进行缩放。 可以采用下面的方法实现缩放处理:得到用户通过计算机人机交互设备发 出的缩放指令后, 读取当前桌面背景图片数据, 根据指令计算放缩比例, 对桌 面背景图片进行放大或缩小。对桌面背景图片进行缩放时可以调用系统提供的 位图处理接口来处理, 也可以另编写处理函数进行处理, 具体实现过程, 本领 域一般技术人员容易理解, 不再赘述。  Preferably, the processing the desktop background image may be to zoom the desktop background image. The zooming process can be implemented by the following method: after obtaining the zoom instruction sent by the user through the computer human-machine interaction device, the current background image data of the desktop is read, and the zoom ratio is calculated according to the instruction, and the background image of the desktop is enlarged or reduced. When the desktop background image is scaled, the bitmap processing interface provided by the system can be called to process, or the processing function can be further processed for processing. The specific implementation process is easily understood by those skilled in the art and will not be described again.
优选的, 根据所述命令, 确定缩放区域, 所述缩放区域是整个桌面背景图 片或者桌面背景图片的局部。  Preferably, according to the command, a zoom area is determined, and the zoom area is a part of an entire desktop background image or a desktop background image.
由计算机人机交互设备发出的命令来确定缩放区域的范围,当命令中未选 择缩放区域时,可以认为缩放区域是整个桌面背景图片的范围, 当命令中含有 对缩放区域的选择参数时,可以得到所选择的缩放区域,此缩放区域是整个桌 面背景图片的局部。  The command issued by the computer human-machine interaction device determines the range of the zoom area. When the zoom area is not selected in the command, the zoom area may be considered as the range of the entire desktop background image. When the command includes a selection parameter for the zoom area, Get the selected zoom area, which is part of the entire desktop background image.
优选的, 根据所述命令, 确定缩放中心, 所述缩放中心是桌面中心、 所述 缩放区域中心或者计算机人机交互设备光标所在位置或给定的坐标位置。  Preferably, according to the command, a zoom center is determined, where the zoom center is a desktop center, a zoom center or a location of a computer human-machine interaction device cursor or a given coordinate position.
本发明提供了多种动态缩放桌面背景的方式。根据桌面背景图片缩放位置 不同,可分为桌面背景居中缩放和根据计算机人机交互设备的光标所在位置缩 放。 根据所述命令的不同, 当对桌面背景图片进行缩放时, 缩放中心是桌面中 心,在缩放过程中图片的中心位置保持位于桌面的中心; 当对计算机人机交互 设备的光标所在位置进行缩放时, 缩放中心是光标所在位置,在缩放过程中光 标所在位置的图像位置在桌面上保持不变;当对用户选择的局部区域进行缩放 时, 缩放中心是局部区域的中心; 缩放中心还可以是任意给定的坐标位置。 The present invention provides a variety of ways to dynamically scale the desktop background. According to the zoom position of the desktop background image, it can be divided into the desktop background centered zoom and according to the position of the cursor of the computer human-computer interaction device. Put it. According to the different commands, when the desktop background image is zoomed, the zoom center is the center of the desktop, and the center position of the image remains at the center of the desktop during the zooming process; when the position of the cursor of the computer human-computer interaction device is zoomed The zoom center is the position of the cursor. During the zooming process, the image position of the cursor position remains unchanged on the desktop. When the local area selected by the user is zoomed, the zoom center is the center of the local area; the zoom center can also be any The given coordinate position.
当进行缩放时,可以通过预先定义的操作触发缩放动作,如利用鼠标滚轮 向上滚动或者 '+,键触发桌面背景的放大, 利用鼠标滚轮向下滚动或者' -,键触 发桌面背景的缩小。 在动态缩放过程中, 缩放流程如图 4所示, 具体步骤是: 响应缩放指令, 判断是否是放大指令, 若是, 获取放大系数, 若否, 获取缩小 系数,根据设定的每次放缩操作的放缩系数和当前图片的绘制大小(wd, hd ) 计算出缩放后的绘制大小 (ws,hs),得到桌面窗口的宽度 W和高度 h,计算桌面 背景的绘制区域, 显示桌面背景。 ws表示背景图片缩放后的绘制宽度, 可用 背景图片的当前绘制宽度乘缩放系数计算得到, hs表示背景图片缩放后的绘 制高度, 可用背景图片的当前绘制高度乘缩放系数计算得到, 需要注意的是, 在执行放缩操作时,图片的绘制起点坐标及绘制区域实际上可能已经超出桌面 可见范围, 但这并不影响最终显示结果。  When zooming, the zoom action can be triggered by a predefined action, such as scrolling up with the mouse wheel or '+, the button triggers the zooming of the desktop background, scrolling down with the mouse wheel or '-, the button triggers the zooming of the desktop background. In the dynamic zooming process, the zooming process is as shown in FIG. 4. The specific steps are: responding to the zooming instruction, determining whether it is an enlarged instruction, and if so, obtaining an amplification factor, if not, obtaining a reduction factor, according to the set each zooming operation The scaling factor and the current drawing size (wd, hd) calculate the scaled drawing size (ws, hs), get the width W and height h of the desktop window, calculate the drawing area of the desktop background, and display the desktop background. Ws represents the drawing width of the background image after scaling. It can be calculated by multiplying the current drawing width of the background image by the scaling factor. hs is the height of the background image after scaling. It can be calculated by multiplying the current drawing height of the background image by the scaling factor. When the zoom operation is performed, the drawing start coordinates and drawing area of the picture may actually exceed the visible range of the desktop, but this does not affect the final display result.
下面具体给出一个计算桌面背景的绘制区域的一种可选算法:  An optional algorithm for calculating the drawing area of the desktop background is given below:
假定桌面窗口左上角为坐标原点, 当以某一点为缩放中心进行缩放时, 缩 放中心在桌面窗口上的位置在缩放前后保持不变。 参见图 5 , 桌面窗口的宽度 为 w, 高度为 h, 当前桌面背景图片的绘制宽度为 wd, 绘制高度为 hd, 801 表示缩放中心的位置, 其在桌面窗口中的坐标为(xp, yp ), 桌面背景图片左 上角在桌面窗口上的坐标为 (X, y )。 以 801为中心, 对桌面背景图片进行缩 放,设缩放系数为 s,缩放后桌面背景图片的绘制区域相关参数计算公式如下: xs = xp - sx(xp - X)  Assume that the top left corner of the desktop window is the coordinate origin. When zooming with a point as the zoom center, the position of the zoom center on the desktop window remains unchanged before and after zooming. Referring to FIG. 5, the width of the desktop window is w, the height is h, the drawing width of the current desktop background image is wd, the drawing height is hd, and 801 represents the position of the zoom center, and the coordinates in the desktop window are (xp, yp). The coordinates of the top left corner of the desktop background image on the desktop window are (X, y). Focus on the 801 as the center, and scale the desktop background image. Set the zoom factor to s. The calculation formula for the drawing area of the desktop background image after scaling is as follows: xs = xp - sx(xp - X)
ys = yp - sx(yp - y)  Ys = yp - sx(yp - y)
ws = sxwd  Ws = sxwd
hs = sxhd  Hs = sxhd
xs: 缩放后的桌面背景图片左上角相对于桌面窗口左上角的横向坐标。 ys: 缩放后的桌面背景图片左上角相对于桌面窗口左上角的纵向坐标。 ws: 缩放后的桌面背景图片的绘制宽度。 Xs: The horizontal coordinate of the top left corner of the scaled desktop background image relative to the top left corner of the desktop window. Ys: The vertical coordinate of the top left corner of the zoomed desktop background image relative to the upper left corner of the desktop window. Ws: The drawing width of the scaled desktop background image.
hs: 缩放后的桌面背景图片的绘制高度。  Hs: The height of the zoomed desktop background image.
当以鼠标位置为缩放中心时,上述(xp、 yp )为鼠标在桌面窗口上的坐标。 在使用桌面背景居中缩放模式时, 缩放中心、 桌面窗口中心、 背景图片中 心三者重合, 依据上述原理, 其放缩区域计算公式为:  When the mouse position is used as the zoom center, the above (xp, yp) is the coordinates of the mouse on the desktop window. When using the desktop background centering zoom mode, the zoom center, the center of the desktop window, and the background image center are coincident. According to the above principle, the calculation formula of the zoom area is:
ws = sxwd  Ws = sxwd
hs = sxhd  Hs = sxhd
xs =(w-ws)/2  Xs =(w-ws)/2
ys =(h-hs)/2  Ys = (h-hs)/2
计算出以上数据后, 将桌面背景图片拉伸显示在坐标(xs, ys)和坐标(xs After calculating the above data, the desktop background image is stretched and displayed at coordinates (xs, ys) and coordinates (xs).
+ws, ys +hs )之间的矩形区域即完成了放缩操作。 The rectangular area between +ws, ys +hs ) completes the scaling operation.
优选的, 调整所述缩放区域的范围, 使其宽高比与桌面的宽高比接近, 本 实施例以缩放区域的宽高比等于桌面的宽高比为例。比如设定相似系数阔值为 0.8, 则假设一个 4: 3=1.333,5: 4=1.25 , 则相似度为较大的值除以较小的值相 似度 =1.25/1.333>0.8,表示相近。具体实施时相似系数阔值的取值视需要而定。。  Preferably, the range of the zoom area is adjusted such that the aspect ratio is close to the aspect ratio of the desktop. In this embodiment, the aspect ratio of the zoom area is equal to the aspect ratio of the desktop. For example, if the similarity coefficient is set to 0.8, then a 4:3=1.333, 5:4=1.25 is assumed, then the similarity is larger and the similarity is smaller. The similarity is 1.25/1.333>0.8, indicating similarity. . The value of the similarity coefficient of the specific implementation is determined as needed. .
当对被选定的桌面背景图片局部区域进行缩放时 ,可以将选定的局部区域 进行缩小或放大,还可以将局部区域直接放大成桌面背景,在区域选择操作过 程中,由于选择范围的宽高比一般都与桌面的宽高比不同,在放大该区域之前 , 需要调整该区域的范围 , 使当前选择区域范围的宽高比与桌面的宽高比接近, 本实施例以缩放区域的宽高比等于桌面的宽高最佳。  When the local area of the selected desktop background image is zoomed, the selected local area can be reduced or enlarged, and the local area can be directly enlarged into the desktop background. During the area selection operation, the selection range is wide. The height ratio is generally different from the aspect ratio of the desktop. Before zooming in on the area, the range of the area needs to be adjusted so that the aspect ratio of the current selected area is close to the aspect ratio of the desktop. In this embodiment, the width of the zoom area is wide. The height ratio is equal to the width and height of the desktop.
设选择范围的高度和宽度分别是 hsel,wsel, 桌面的高度和宽度分别是 hdesk,wdesk,如果 hsel/wsel> hdesk/wdesk, 以选择范围的纵向充满桌面为目标, 缩放比例为 hdesk/hsel, 按桌面宽高比调整选择范围的宽度, 使选择范围的宽 高比与桌面的宽高比接近,本实施例以缩放区域的宽高比等于桌面的宽高比为 例, 即使得 hsel/wsel = hdesk/wdesk, 从而推出调整后选择范围的宽度等于 wsel=hsel*wdesk/hdesk;。  The height and width of the selection range are hsel, wsel, the height and width of the desktop are hdesk, wdesk, respectively, if hsel/wsel> hdesk/wdesk, the target is full of desktops in the selected range, and the scale is hdesk/hsel. Adjust the width of the selection range according to the aspect ratio of the desktop, so that the aspect ratio of the selection range is close to the aspect ratio of the desktop. In this embodiment, the aspect ratio of the zoom area is equal to the aspect ratio of the desktop, that is, hsel/wsel = hdesk/wdesk, so that the width of the adjusted selection range is equal to wsel=hsel*wdesk/hdesk;.
如果 hsel/wsel<= hdesk/wdesk,使范围的横向充满桌面, 缩放比例为 wdesk/wsel, 按桌面宽高比调整选择范围的高度, 使选择范围的宽高比与桌面 的宽高比接近, 以等于为例, 即使得 hsel/wsel = hdesk/wdesk, 从而推出调整 后选择范围的高度等于 hsel = wsel *hdesk/wdesk。 If hsel/wsel<= hdesk/wdesk, the horizontal extent of the range is filled with the desktop, the scaling is wdesk/wsel, and the height of the selection range is adjusted according to the aspect ratio of the desktop, so that the aspect ratio of the selection range is close to the aspect ratio of the desktop. Take the example of equality, that is, make hsel/wsel = hdesk/wdesk, so that the adjustment is pushed out. The height of the post selection range is equal to hsel = wsel *hdesk/wdesk.
缩放时,有可能需要同步进行缩放区域的移动,将图片移动的目标区域中 心称为目标中心, 通常情况下, 目标中心为桌面中心, 在一个连续的缩放过程 中, 目标中心可以随着缩放效果的需要动态改变。  When zooming, it may be necessary to synchronize the movement of the zoom area. The center of the target area where the picture is moved is called the target center. Usually, the target center is the center of the desktop. In a continuous zooming process, the target center can follow the zoom effect. The need to change dynamically.
优选的,当所述缩放区域的中心和目标中心不重合时,移动所述缩放区域, 直到其中心和目标中心重合。  Preferably, when the center of the zoom area and the target center do not coincide, the zoom area is moved until its center coincides with the target center.
当选择桌面背景图片的局部区域进行缩放时,可以把局部区域的中心移动 到桌面中心上, 此时的目标中心即是桌面中心, 使其居中缩放, 并可以放到充 满桌面背景。  When you select a local area of the desktop background image for zooming, you can move the center of the local area to the center of the desktop. The target center is the center of the desktop, which centers it and zooms in and fills the desktop background.
参见图 6a, 是本发明的对桌面背景图片局部区域进行缩放的流程图, 具 体步骤是: 响应鼠标框选操作, 获取当前框选范围, 判断是否有快捷方式被选 中, 若否, 按上述方法调整框选范围, 并计算出放大系数, 将框选范围内的图 像显示放大处理, 若是, 不加处理, 将消息传回系统。 参见图 6b, 是本发明 的框选放大区域选择示例图,在桌面背景上使用鼠标框选人像的手臂部分; 参 见图 6c, 是本发明的框选放大区域选择示例图, 人像的手臂部分被放大成为 桌面背景。  Referring to FIG. 6a, it is a flowchart of zooming in a local area of a desktop background image according to the present invention. The specific steps are: responding to a mouse frame selection operation, obtaining a current frame selection range, and determining whether a shortcut is selected, if not, according to the above method. Adjust the frame selection range, and calculate the magnification factor, and enlarge the image display within the frame selection range. If yes, send the message back to the system without processing. Referring to FIG. 6b, which is an example of the selection of the frame selection enlargement area of the present invention, the arm portion of the portrait is selected by using the mouse on the desktop background; see FIG. 6c, which is an example of the selection of the frame selection enlargement area of the present invention, and the arm portion of the portrait is Zoom in to become the desktop background.
优选的 , 所述对桌面背景图片进行处理还可以是对桌面背景图片进行移 动。  Preferably, the processing the desktop background image may also be: moving the desktop background image.
移动所述桌面背景图片可以采用下面的方法实现:预先定义触发移动桌面 背景的操作指令,如按下键盘的方向键是移动的命令, 当拦截到方向键被按下 的命令后, 获取桌面背景图片, 把桌面背景图片的显示位置移动后, 重新显示 在桌面背景中。这里也可以采用获取当前背景图片的显示比例、显示位置以及 桌面背景图片的原文件所在的位置,从文件中获取图片,并把显示位置移动后, 显示在桌面背景上。  Moving the desktop background image may be implemented by pre-defining an operation instruction that triggers the movement of the desktop background, such as pressing a keyboard's direction key to move the command, and when intercepting the direction key pressed command, acquiring the desktop background. Picture, after moving the display position of the desktop background image, redisplay in the desktop background. Here, it is also possible to obtain the display scale of the current background image, the display position, and the location of the original file of the desktop background image, obtain the image from the file, and move the display position to display on the desktop background.
优选的, 根据所述命令, 确定移动的步长, 所述步长是预设值或者计算机 人机交互设备光标移动距离。  Preferably, according to the command, the step size of the movement is determined, and the step size is a preset value or a cursor movement distance of the computer human-machine interaction device.
在实现移动过程中, 可以预设每次移动的步长的值, 每次执行移动时, 只 移动固定的距离,也可以按照截取的命令中计算机人机交互设备的光标的移动 距离为移动的步长。 例如, 当得到键盘的方向键按下命令时, 把桌面背景图片 按照预设的固定步长进行移动后显示,当得到的是鼠标的中键按下并且鼠标光 标移动到新位置的命令时,将桌面背景图片按照鼠标移动的方向,移动中键按 下时鼠标光标的位置和鼠标光标新的位置间的距离。 In the process of implementing the movement, the value of the step size of each movement may be preset, and each time the movement is performed, only a fixed distance is moved, or the moving distance of the cursor of the computer human-computer interaction device in the intercepted command may be moved. Step size. For example, when you get the keyboard's arrow keys to press the command, put the desktop background image After moving according to the preset fixed step size, when the command of the middle button of the mouse is pressed and the mouse cursor is moved to the new position, the background image of the desktop is moved according to the direction of the mouse movement, and the mouse is pressed when the middle button is pressed. The distance between the position of the cursor and the new position of the mouse cursor.
参见图 7, 是本发明的对桌面背景图片进行移动流程图, 具体步骤如下: 响应鼠标中键按下消息, 记录此时的鼠标位置 A; 响应鼠标的移动消息, 跟踪 鼠标的移动位置 B; 判断鼠标中键是否保持按下, 如果鼠标中键已经松开, 结 束移动操作, 否则得到鼠标的当前位置 B, 计算鼠标的当前位置 B和位置 A 的距离得到桌面背景需要移动的偏移量, 使用该偏移量更新桌面背景的位置, 刷新桌面的显示, 完成一次移动。  Referring to FIG. 7, which is a flowchart of moving a desktop background image according to the present invention, the specific steps are as follows: responding to a mouse button press message, recording the mouse position A at this time; responding to the mouse movement message, tracking the mouse movement position B; Determine whether the middle button of the mouse is kept pressed. If the middle button of the mouse has been released, the moving operation is ended. Otherwise, the current position B of the mouse is obtained, and the distance between the current position B of the mouse and the position A is calculated to obtain the offset of the desktop background to be moved. Use this offset to update the position of the desktop background, refresh the display of the desktop, and complete a move.
优选的, 重复执行移动, 直到在移动的反方向上的桌面背景图片超出桌面 背景的部分逐步显示在桌面背景上。  Preferably, the movement is repeatedly performed until the desktop background image in the opposite direction of the movement exceeds the desktop background portion and is gradually displayed on the desktop background.
当桌面背景图片比较大,超出了桌面的可见范围时,可以通过自动重复执 行固定步长的移动来浏览超出桌面部分的图像, 例如, 一个宽幅的风景图片, 显示在桌面背景上时, 左右两侧的部分不能显示出来,此时用户可以通过移动 图片来显示,每次移动固定的步长或者使用鼠标来移动,但需要用户多次操作 才能逐步把出超出桌面之外的部分显示在桌面背景上, 用户使用不方便,本实 施例可以提供自动平移桌面背景图片直到显示到图片的端头的方法,可以定义 "Ctrl—→"组合键为自动移动向右移动桌面背景图片的命令, 当" Ctrl—→"组合键 按下时,取得当前桌面显示位置,按照预先设定的步长移动图片后在显示在桌 面背景上, 重复前面的步骤, 直到最左端的图片逐步显示在屏幕上。 在这里也 可以由用户的停止移动命令来停止自动移动,可以方便的定位到用户需要的桌 面背景图片的显示位置上。  When the background image of the desktop is large and exceeds the visible range of the desktop, you can browse the image beyond the desktop by automatically repeating the movement of the fixed step. For example, a wide landscape picture is displayed on the desktop background. The parts on both sides cannot be displayed. At this time, the user can display by moving the picture, each time moving a fixed step or using the mouse to move, but the user needs to perform multiple operations to gradually display the part beyond the desktop on the desktop. On the background, the user is inconvenient to use. This embodiment can provide a method for automatically panning the background image of the desktop until the end of the image is displayed. The "Ctrl-→" key combination can be defined as a command for automatically moving the desktop background image to the right. When the "Ctrl-→" key combination is pressed, the current desktop display position is obtained. After moving the picture according to the preset step size, it is displayed on the desktop background, and the previous steps are repeated until the leftmost picture is gradually displayed on the screen. Here, the automatic movement can also be stopped by the user's stop movement command, and the position of the background image of the desktop image desired by the user can be conveniently located.
优选的,所述对桌面背景图片进行处理还可以是对桌面背景图片进行加入 特效。  Preferably, the processing of the desktop background image may also be performed by adding a special effect to the desktop background image.
对背景图片的处理也可以是加入某种特殊效果, 例如, 当桌面背景图片的 是人物肖像时, 可以对肖像进行加框处理, 或者是风景画时, 可以进行颜色变 换处理, 使桌面背景图片的显示更加美观。  The processing of the background image can also be a special effect, for example, when the background image of the desktop is a portrait, the portrait can be framed, or when the landscape is landscaped, the color transformation processing can be performed to make the desktop background image The display is more beautiful.
优选的 , 所述特效是图片边框修饰或者图片像素级变换处理。  Preferably, the special effect is a picture frame modification or a picture pixel level conversion process.
所述特效包括图片边框修饰、 图片像素级变换处理, 如光照效果、 浮雕、 色调调整、 扭曲等。 如通过处理将背景图片改为浮雕效果, 或者通过处理为桌 面背景添加光照效果等。下面描述一种将桌面背景图片处理为浮雕效果的实施 方法, 其它效果不再逐一列举。 The special effects include picture frame decoration, picture pixel level transformation processing, such as lighting effects, relief, Tone adjustment, distortion, etc. For example, by changing the background image to an embossed effect, or by adding a lighting effect to the desktop background. The following describes an implementation method for processing a desktop background image as an embossed effect, and other effects are not enumerated one by one.
图像最终可以转换为像素的二维数组,它记录了图像中每个像素的颜色信 息, 在 Windows中颜色是根据红、 绿、 蓝三种颜色的饱和度来定义的, 简称 三原色。通过一定的算法改变图像的部分或全部像素的颜色值, 就可以实现图 像的特殊效果处理。浮雕效果就是只将图像的变化部分突出出来, 而相同颜色 部分则被淡化,使图像出现纵深感,从而达到浮雕效果。浮雕算法的公式如下: Rl=(R-r)+C  The image can eventually be converted into a two-dimensional array of pixels that record the color information for each pixel in the image. In Windows, the color is defined by the saturation of the three colors red, green, and blue, referred to as the three primary colors. The special effect processing of the image can be realized by changing the color value of some or all of the pixels of the image by a certain algorithm. The embossing effect is that only the changed part of the image is highlighted, and the same color part is faded, so that the image has a sense of depth, thereby achieving the relief effect. The formula of the relief algorithm is as follows: Rl=(R-r)+C
Gl=(G-g) + C  Gl=(G-g) + C
Bl=(B-b)+ C  Bl=(B-b)+ C
其中 R,G,B是像素对应的红、绿、蓝三原色值, r,g,b是该点相临像素的红、 绿、 蓝三原色值, C是决定浮雕效果的阀值, 取值 (100 ~ 150)之间效果较好, 其中 R1,G1,B1变换后的三原色值。  Where R, G, B are the primary color values of red, green and blue corresponding to the pixel, r, g, b are the primary colors of red, green and blue of the adjacent pixels of the point, and C is the threshold for determining the relief effect, and the value is The effect between 100 ~ 150) is better, among which the three primary color values after R1, G1 and B1 transformation.
本实施例采用的算法是将要处理的像素取值为与处于对角线上的另一个 像素间的差值,这样只有颜色变化区才会出现色彩, 而颜色平淡区因差值几乎 为零则变成黑色, 可以通过加上一个常量 C来增加一些亮度。  The algorithm adopted in this embodiment is that the value of the pixel to be processed is the difference between the pixel and the other pixel on the diagonal, so that only the color change region will appear color, and the color dull region has almost zero difference. Turning black, you can add some brightness by adding a constant C.
参见图 8, 是本发明对桌面背景图片进行浮雕效果处理的流程图, 具体步 骤是:  Referring to FIG. 8, which is a flowchart of the embossing effect processing on the desktop background image, the specific steps are as follows:
通过某一操作触发实施浮雕效果的执行, 首先建立一个内存中的位图, 用 于保存处理后的图片。接着得到当前背景图片的緩存内容,从左上角开始循环 每个像素, 得到当前位置 (i,j)的像素值, 分解为 R,G,B, 表示该像素对应的红、 绿、 蓝三原色值。 得到当前位置对角线 (i+l,j+l)的像素值, 分解为 r,g,b, 表示 该像素对应的红、绿、蓝三原色值。通过下面公式计算得到变换后的三原色值。  The execution of the embossing effect is triggered by an operation, and first an in-memory bitmap is created for saving the processed image. Then, the cache content of the current background image is obtained, and each pixel is looped from the upper left corner to obtain the pixel value of the current position (i, j), which is decomposed into R, G, B, and represents the red, green, and blue primary color values corresponding to the pixel. . The pixel value of the diagonal (i+l, j+l) of the current position is obtained, and is decomposed into r, g, b, which represent the three primary color values of red, green and blue corresponding to the pixel. The transformed three primary color values are calculated by the following formula.
Rl=(R-r)+C  Rl=(R-r)+C
Gl=(G-g)+ C  Gl=(G-g)+ C
Bl=(B-b)+ C  Bl=(B-b)+ C
C是一个常量,计算得到变换后的三原色值 R1,G1,B1。将 R1,G1,B1组合成 像素值设置到内存位图的 (i,j)处。 完成循环, 将目前的桌面显示背景设置为创 建的内存位图。 刷新桌面, 完成设置。 C is a constant, and the transformed three primary color values R1, G1, and B1 are calculated. Combine R1, G1, and B1 into pixel values and set them to (i, j) of the memory bitmap. Complete the loop and set the current desktop display background to Built memory bitmap. Refresh the desktop and complete the setup.
优选的, 所述方法还包括, 获取并保存所述桌面背景的显示控制参数, 所 述显示控制参数用于控制桌面背景的显示。  Preferably, the method further includes: acquiring and saving display control parameters of the desktop background, wherein the display control parameters are used to control display of the desktop background.
当用户更改桌面背景图片为其它的图片时, 为达到最佳的显示效果, 需要 重复移动及缩放的处理, 步骤多, 操作效率低, 也使用户丧失了调整桌面背景 图片的兴趣。 为了解决这个问题,本发明还提供了桌面背景显示控制参数的存 储与按照其恢复桌面背景图片的显示效果的方法。在完成桌面背景图片的处理 到达要求的现实效果后,在得到特定命令、 桌面背景发生变化或者在特定的时 间时, 保存当前的桌面背景的显示控制参数, 显示控制参数内容可以包括: 桌 面背景图片所对应的图片文件的唯一标识、存储位置、 桌面背景图片的缩放比 例、在桌面上的显示位置、特效设置等信息, 以后重复使用该桌面背景图片作 为桌面背景时, 系统根据对应的图片文件的唯一标识,在保存的多条显示控制 参数中找到最新的一条, 根据此显示控制参数, 自动重现上次的显示效果, 避 免了用户的重复操作。 对于同一个桌面背景图片可以保存多个显示控制参数, 分别代表了不同的显示效果。  When the user changes the background image of the desktop to other pictures, in order to achieve the best display effect, the process of repeated movement and zooming is required, the steps are numerous, the operation efficiency is low, and the user loses the interest in adjusting the background image of the desktop. In order to solve this problem, the present invention also provides a method of storing the background control parameter of the desktop and a method of restoring the display effect of the background image of the desktop. After the processing of the desktop background image reaches the required realistic effect, the display control parameter of the current desktop background is saved when a specific command is obtained, the desktop background changes, or at a specific time, and the display control parameter content may include: a desktop background image The corresponding image file's unique identifier, storage location, desktop background image zoom ratio, display position on the desktop, special effects settings, etc., when the desktop background image is repeatedly used as the desktop background, the system according to the corresponding image file The unique identifier finds the latest one among the saved multiple display control parameters. According to the display control parameter, the last display effect is automatically reproduced, and the repeated operation of the user is avoided. For the same desktop background image, multiple display control parameters can be saved, which represent different display effects.
显示控制参数可存储在任意位置,典型的如存储在本地的文件中、数据库 中、注册表或者远程的服务器上。唯一标识是一段比图片本身内容小得多的数 据,可使用图片文件的指纹信息作为唯一标识, 图片文件的指纹信息是通过一 定的算法, 根据内容为每个图片文件产生的一个标识; 相同内容的图片文件, 不论存储的物理位置是否相同,都会产生相同的唯一标识; 不同内容的图片文 件, 即便名称相同, 产生的唯一标识也是不同的。  Display control parameters can be stored anywhere, typically in a local file, in a database, on a registry, or on a remote server. The unique identifier is a piece of data that is much smaller than the content of the picture itself, and the fingerprint information of the picture file can be used as the unique identifier. The fingerprint information of the picture file is an identifier generated by each algorithm according to the content, and the same content is generated according to the content; The image file, regardless of whether the physical location of the storage is the same, will produce the same unique identifier; the image files of different contents, even if the names are the same, the unique identifiers generated are different.
根据文件内容产生唯一标识有多种方法。一种常用的方法是使用文件内容 的哈希值。哈希函数将任意长度的二进制字符串映射为固定长度的小型二进制 字符串。哈希函数有这样一个属性:在计算上不大可能找到散列为相同的值的 两个不同的输入值; 也就是说, 两组数据的哈希值仅在对应的数据也匹配时才 会匹配。 数据的少量更改会在哈希值中产生不可预知的大量更改。  There are several ways to generate a unique identifier based on the content of the file. A common method is to use a hash of the contents of the file. A hash function maps a binary string of arbitrary length to a small binary string of fixed length. The hash function has an attribute that it is not computationally likely to find two different input values that are hashed to the same value; that is, the hash values of the two sets of data will only be matched if the corresponding data also matches. match. A small amount of change in data can produce unpredictable large changes in the hash value.
实际使用中计算哈希值有许多成熟的算法,这些算法不仅处理效率高, 而 且不同的原始数据计算出相同哈希值的概率极其低,因此哈希值可以看作原始 数据的指纹。 常用的哈希算法包括: MD2、 MD4、 MD5、 SHA等。 优选的, 所述方法还包括: 读取显示控制参数; 根据所述读取的显示控制 参数, 显示桌面背景。 There are many mature algorithms for calculating hash values in actual use. These algorithms are not only highly efficient, but the probability of different raw data calculating the same hash value is extremely low, so the hash value can be regarded as the fingerprint of the original data. Commonly used hash algorithms include: MD2, MD4, MD5, SHA, and so on. Preferably, the method further comprises: reading display control parameters; displaying a desktop background according to the read display control parameters.
每条显示控制参数都可以用于重现桌面背景的显示效果,根据接收的命令 的不同,这里读取的显示控制参数可以按照两种方式来读取,一种是按照当前 桌面背景图片对应的图片文件的唯一标识来选择显示控制参数,把和同一图片 文件相关联的显示控制参数按时间进行排序 , 如果当前的显示效果已经保存 , 就读取上一条, 如果未保存当前的, 就读取最新的一条; 另一种方式是, 把所 有的显示控制参数按时间排序, 顺次读取上一条。 得到显示控制参数后, 按照 显示控制参数中保存的参数, 取得图片文件, 按照参数中的显示比例、 显示位 置、 特效进行桌面背景的显示。  Each display control parameter can be used to reproduce the display effect of the desktop background. According to the received commands, the display control parameters read here can be read in two ways, one is according to the current desktop background image. The unique identifier of the image file is used to select the display control parameter, and the display control parameters associated with the same image file are sorted by time. If the current display effect has been saved, the previous one is read, and if the current one is not saved, the read is performed. The latest one; another way is to sort all the display control parameters by time and read the previous one in sequence. After the display control parameters are obtained, the image file is obtained according to the parameters saved in the display control parameters, and the desktop background is displayed according to the display scale, display position, and special effects in the parameters.
优选的 , 所述计算机人机交互设备可以是所述计算机人机交互设备是键 盘、 鼠标、 摇杆、 跟踪球、 触摸屏、 手写笔或者无线遥控装置, 并且不限于这 些设备。 这些计算机指点设备可以通过通讯接口向计算机设备发送操作指令, 实现对计算机设备的控制操作 , 其中应用最广泛的是键盘或鼠标。  Preferably, the computer human-machine interaction device may be a keyboard, a mouse, a joystick, a trackball, a touch screen, a stylus or a wireless remote control device, 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 keyboard or a mouse.
优选的, 所述计算机人机交互设备发出的命令可以是:在桌面上发出的单 击计算机人机交互设备按键、双击计算机人机交互设备、滚动计算机指点设备 的滚轮、计算机指点设备光标的移动轨迹、 桌面区域框选或者按下键盘的特定 键, 以及它们的组合。所述的命令是由计算机指点设备在计算机设备的桌面上 发出的, 即在显示桌面背景图片的情况下, 在桌面背景图片上发出的命令, 例 如, 当人机交互设备是鼠标时, 选中桌面背景图片, 使用鼠标发出单双击或滚 动滚轮等命令,使用这些命令直接对桌面背景图片进行处理, 而不是显示桌面 上的按钮等控件, 由鼠标选择按钮等控件间接发出命令; 当人机交互设备是键 盘时, 可以在显示桌面背景图片的情况下, 发出特定的组合键命令, 根据命令 直接对桌面背景图片进行处理 , 不打开其它的界面进行操作。  Preferably, the command issued by the computer human-machine interaction device may be: clicking a computer human-computer interaction device button issued on the desktop, double-clicking the computer human-computer interaction device, scrolling the scroll wheel of the computer pointing device, and moving the cursor of the computer pointing device Tracks, desktop area selections or specific keys pressed on the keyboard, and combinations of them. The command is issued by a computer pointing device on the desktop of the computer device, that is, a command issued on the desktop background image when the desktop background image is displayed, for example, when the human-computer interaction device is a mouse, the desktop is selected. Background image, use the mouse to issue a single double-click or scroll wheel command, use these commands to directly process the desktop background image, instead of displaying controls such as buttons on the desktop, indirectly by the mouse selection button and other controls; when the human-computer interaction device When the keyboard is displayed, a specific combination key command can be issued in the case of displaying the desktop background image, and the desktop background image can be directly processed according to the command, and the other interfaces are not opened for operation.
参见图 9所示,是本发明的桌面背景自动平移的操作位置图,该实施例作 为对本发明的移动桌面背景的一个扩展。可以显示在桌面上,操作位置图包括 中心区域 300, 在中心区域 300周围的 8个方向分布 8个操作响应区域: 左边 区域 301, 上边区域 302, 右边区域 303, 下边区域 304, 左上角区域 305, 右 上角区域 306, 右下角区域 307, 左下角区域 308。 操作位置图可以通过某一操作触发显示,如鼠标或按键消息,或者在满足 一定的条件时自动显示,如在检测到目前的桌面背景显示部分超出屏幕时。使 用鼠标点击操作 301至 308的区域,桌面背景自动沿当前操作区域代表的方向 自动移动,直到桌面背景超出桌面的部分全部显示在桌面上或者选择停止自动 移动。 自动移动可选择平滑移动或间隔的移动。 Referring to Figure 9, there is shown an operational position map of the desktop background automatic panning of the present invention as an extension of the mobile desktop background of the present invention. It can be displayed on the desktop, the operation location map includes the central area 300, and eight operational response areas are distributed in eight directions around the central area 300: the left area 301, the upper area 302, the right area 303, the lower area 304, and the upper left area 305. , the upper right corner area 306, the lower right corner area 307, and the lower left corner area 308. The operation position map can be triggered by an operation, such as a mouse or button message, or automatically displayed when certain conditions are met, such as when it is detected that the current desktop background display portion is beyond the screen. Using the mouse to click on the areas of operations 301 through 308, the desktop background automatically moves in the direction represented by the current operating area until all portions of the desktop background beyond the desktop are displayed on the desktop or select to stop automatic movement. Automatic movement selects smooth movement or interval movement.
需要说明的是,此操作位置图并不是显示在桌面上的按钮等控件, 只是辅 助提供一个操作位置的提示作用 , 并不像控件一样对鼠标发出的命令进行转 换, 所以也可以不显示出来, 只要鼠标在特定的位置发出点击命令, 就自动移 动桌面背景图片。  It should be noted that the operation position map is not a control such as a button displayed on the desktop, but only provides a prompt function for providing an operation position, and does not convert the command issued by the mouse like the control, so it may not be displayed. As long as the mouse clicks on a specific location, the desktop background image is automatically moved.
自动移动操作界面也可以使用其他的操作响应方式替代。优选的,使用鼠 标动作操作替代自动移动操作界面的命令。 例如, 按下鼠标中键, 记下此时的 鼠标位置, 该位置代表了图 9 中的 300 区域, 以该位置为中心, 在周围的 8 个方向形成 8个虚拟的鼠标移动响应区或,分别对应图 7中的 301至 308区或。 该 8个虚拟鼠标移动响应区域不一定使用具体的界面体现,而是在鼠标移动到 该区域时通过改变鼠标的图形显示给出提示,同时桌面背景自动沿当前区域代 表的方向自动移动,直到桌面背景超出桌面的部分全部显示在桌面上或者选择 停止自动移动。  The automatic mobile operator interface can also be replaced with other operational response methods. Preferably, the command to automatically move the operator interface is replaced with a mouse action action. For example, press the middle mouse button and note the mouse position at this time. This position represents the 300 area in Figure 9. With this position as the center, 8 virtual mouse movement response areas or 8 directions are formed in the surrounding 8 directions. Corresponding to the 301 to 308 area or in Fig. 7, respectively. The 8 virtual mouse movement response areas are not necessarily embodied by a specific interface, but are prompted by changing the graphical display of the mouse when the mouse moves to the area, and the desktop background automatically moves along the direction represented by the current area until the desktop The part of the background that exceeds the desktop is displayed on the desktop or you choose to stop automatic movement.
参照图 10, 展示了通过响应鼠标操作自动移动桌面背景的流程, 具体包 括: 响应鼠标中键按下消息, 记录鼠标的位置, 并以该位置为中心显示准备移 动标记, 响应鼠标移动消息, 据鼠标移动的位置计算当前所在的区域, 判断 在该区域的方向上是否需要移动, 若否, 继续监视鼠标的其它消息, 若是, 根 据区域的位置设置鼠标指针的图形表示,根据离中心点的距离设置每次的平移 量, 设置移动间隔时间, 启动自动平移定时器, 在自动平移定时器中调整背景 的位置, 并刷新显示, 判断退出自动平移操作, 若否, 返回上一步, 若是, 关 闭定时器, 取消平移标志的显示。  Referring to FIG. 10, a flow of automatically moving a desktop background in response to a mouse operation is illustrated, which specifically includes: responding to a mouse button press message, recording a position of the mouse, and displaying a ready to move mark centered on the position, responding to a mouse movement message, according to The position of the mouse movement calculates the current area, determines whether it needs to move in the direction of the area, and if not, continues to monitor other messages of the mouse. If yes, set the graphical representation of the mouse pointer according to the position of the area, according to the distance from the center point. Set the amount of translation each time, set the movement interval time, start the automatic panning timer, adjust the position of the background in the automatic panning timer, and refresh the display to judge the automatic panning operation. If not, return to the previous step, and if so, turn off the timing. , cancel the display of the panning flag.
对于宽幅风景照片, 使用纵向充满桌面后, 激活横向平移功能, 够改善高 分辨率图片浏览体验,可以方便的从左至右或从右至左自动浏览全图, 因为无 需手动控制, 较好的模拟了人眼的观察过程, 能够提高用户的使用感受。  For wide landscape photos, use the vertical full desktop to activate the horizontal pan function, which can improve the high-resolution picture browsing experience. It is convenient to automatically browse the whole picture from left to right or right to left, because no manual control is needed. It simulates the observation process of the human eye and can improve the user's experience.
作为对本发明的移动桌面背景的一个扩展,在实际使用中,可以以指定间 隔连续调入同一背景图片的多个显示控制参数,并顺次按照每个显示控制参数 重现桌面背景的显示效果。采用这种方法,可以按照预先设置的展示方案自动 展示同一图片的连续变换效果。 As an extension of the mobile desktop background of the present invention, in actual use, it is possible to specify a room Multiple display control parameters of the same background image are continuously transferred, and the display effect of the desktop background is reproduced in accordance with each display control parameter. In this way, the continuous transformation effect of the same picture can be automatically displayed according to a preset display scheme.
在连续显示变换的效果时,还可以在相邻的效果变换时采用动态渐变的方 法切换。 例如, 图片中心和图片比例的变换可以平滑自动内插, 也可以采用逐 渐消失, 这样可以使用户使用时感觉流畅, 提高了用户的使用感受。  When the effect of the transformation is continuously displayed, it is also possible to switch by the method of dynamic gradation in the case of adjacent effect transformation. For example, the transformation of the picture center and the image scale can be smoothly and automatically interpolated, or it can be gradually disappeared, which makes the user feel smooth when using, and improves the user experience.
本发明的操作指令定义也可以采用其他的方式。例如,还可以依据人机交 互设备的不同指令而执行不同动作, 以鼠标为例, 从左上到右下框选, 代表用 户希望放大一个区域,从右上到左下框选,代表用户想回到上次保存显示控制 参数时的桌面背景显示状态,采用这种方式时可以把每一条显示控制参数看作 是保存桌面背景显示效果的一个快照;当移动鼠标 ,把光标从左下移到右上时, 代表用户希望切换到下一张桌面背景图片,从右下到左上,代表用户希望切换 到上一张桌面背景图片。  Other ways of defining the operational instructions of the present invention are also possible. For example, different actions can be performed according to different instructions of the human-computer interaction device. Taking the mouse as an example, the user selects from the upper left to the lower right frame, and the user wants to enlarge an area from the upper right to the lower left frame, and the user wants to go back. The desktop background display state when the control parameters are displayed is saved. In this way, each display control parameter can be regarded as a snapshot for saving the desktop background display effect; when the mouse is moved, the cursor is moved from the lower left to the upper right, The user wants to switch to the next desktop background image, from bottom right to top left, on behalf of the user wishing to switch to the previous desktop background image.
本发明还可以使用鼠标指针在屏幕上的特定区域时的操作指令完成不同 操作,优选以 9宫格方式进行命令的定义,将设置桌面背景后的桌面空白区域 虚拟定义成 9宫格的区域,为各个区域的鼠标操作消息指定相应的操作,比如: 在右侧格子内双击切换下一张桌面背景图片,在左侧格子内双击切换上一张桌 面背景图片,在中部格子内双击在充满和上一快照之间切换,在上部格子内双 击切换上一快照,在下部格子内双击切换下一快照。这样的好处是无需借助额 外的控制界面即可提供丰富的桌面背景快速调整的功能。作为扩展,也可以指 定类似的" 4宫格"、 "6宫格"或者其他不规则区域定义, 当这些区域的边界不 显示或不提供可视化特征时, 也就是本发明所述的指令分区。  The invention can also use the operation instruction of the mouse pointer to a specific area on the screen to complete different operations, preferably defining the command in a 9-square grid manner, and virtually defining the blank area of the desktop after setting the desktop background into 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 the Switch between the previous snapshots, 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 additional control interfaces. As an extension, similar "4 squares", "6 squares" or other irregular area definitions may be specified, and when the boundaries of these areas do not display or provide visual features, that is, the instruction partitions of the present invention.
参见图 11, 是本发明方法实施例 2的流程图。  Referring to Figure 11, there is shown a flow chart of Embodiment 2 of the method of the present invention.
显示内容的缩放是目前大多数软件的必备功能,如图片查看软件、媒体播 放软件、 CAD软件、 Office软件等都提供了内容缩放功能, 然而作为用户最 常面对的桌面背景, 却没有提供缩放功能。  The zoom of the display content is a must-have feature of most current software, such as image viewing software, media playback software, CAD software, Office software, etc., which provide content zooming function, but as the desktop background most often faced by users, it is not provided. Zoom function.
在本实施例中, 以 windows XP操作系统为例, 实现对桌面背景图片的缩 放, 具体包括如下步骤:  In this embodiment, the windows XP operating system is taken as an example to implement the zooming of the desktop background image, and the following steps are specifically included:
步骤 501 , 接收用户在桌面背景图片上的鼠标滚轮操作命令。 可以预先设定滚轮向下滚动指令为放大桌面背景图片的指令,桌面系统通 过消息拦截得到传递的消息后 ,判断是否是在桌面背景图片上进行的鼠标滚轮 向下滚动命令, 若是, 继续, 若否, 不做处理, 将消息传回桌面系统, 由其他 代码进行处理。 Step 501: Receive a mouse wheel operation command of the user on the background image of the desktop. The scroll wheel scrolling instruction can be preset to enlarge the desktop background image. After the desktop system receives the message through the message interception, it determines whether the mouse wheel scrolling command is performed on the desktop background image. If yes, continue, if No, no processing, the message is sent back to the desktop system, processed by other code.
步骤 502, 读取当前桌面背景图片。  Step 502: Read the current desktop background image.
可以从当前桌面中读取,也可以找到对应的图片文件,从图片文件中读取。 步骤 503 , 对图片进行放大处理。  It can be read from the current desktop, or the corresponding image file can be found and read from the image file. Step 503: Enlarge the picture.
所述缩放的位置可以是桌面背景图片中心或者计算机人机交互设备的光 标所在位置。  The zoomed position may be the location of the desktop background picture center or the cursor of the computer human-machine interaction device.
步骤 504, 将放大处理后的图片显示桌面背景上。  Step 504: Display the enlarged image on the desktop background.
优选的, 接收计算机人机交互设备发出的命令, 根据所述命令, 直接对桌 面背景图片进行处理。 若所述处理为切换, 则所述方法还包括: 从壁纸列表中 选择目标图片绘制到桌面上。 利用指令分区来处理壁纸切换指令, 只需要用户 在桌面的特定区域执行预定的鼠标动作即可快速完成壁纸的切换,可以带来较 高的操作效率。  Preferably, the command sent by the computer human-machine interaction device is received, and the desktop background image is directly processed according to the command. If the process is a switch, the method further comprises: selecting a target picture from the wallpaper list to draw onto the desktop. Using the instruction partition to process the wallpaper switching instruction, the user can perform the predetermined mouse action in a specific area of the desktop to quickly complete the wallpaper switching, which can bring higher operating efficiency.
其具体的实现过程详见下述实施例 , 在此不做伴细的说明。  The specific implementation process is detailed in the following embodiments, and will not be described in detail herein.
参见图 12, 是本发明的装置实施例 1框图。 包括:  Referring to Figure 12, there is shown a block diagram of a device embodiment 1 of the present invention. Includes:
命令接收单元 1301 , 用于接收计算机人机交互设备发出的命令; 处理单元 1302, 用于根据所述命令, 直接对桌面背景图片进行处理。 命令接收单元 1301接收由计算机人机交互设备直接发出的命令, 处理单 元 1302根据所述命令的内容, 触发程序代码按照预先定义的处理方式对桌面 背景图片进行处理。  The command receiving unit 1301 is configured to receive a command sent by the computer human-machine interaction device. The processing unit 1302 is configured to directly process the desktop background image according to the command. The command receiving unit 1301 receives the command directly issued by the computer human-machine interaction device, and the processing unit 1302 processes the desktop background image according to the pre-defined processing manner according to the content of the command.
参见图 13 , 是本发明的装置实施例 2框图。 本实施例以对桌面背景图片 的缩放为例, 包括:  Referring to Figure 13, there is shown a block diagram of an apparatus embodiment 2 of the present invention. This embodiment takes the scaling of the desktop background image as an example, and includes:
命令接收单元 1401 , 用于接收计算机人机交互设备发出的命令; 缩放处理单元 1402, 用于根据所述命令, 对桌面背景图片进行缩放处理。 命令接收单元 1401得到用户通过计算机人机交互设备发出的缩放命令或 指令后,将所述命令或指令发送给缩放处理单元 1402,所述缩放处理单元 1402 读取当前桌面背景图片数据,根据命令或指令计算放缩比例,对桌面背景图片 进行放大或缩小。对桌面背景图片进行缩放时可以调用系统提供的位图处理接 口来处理, 也可以另编写处理函数进行处理, 具体实现过程, 本领域一般技术 人员容易理解, 不再赞述。 The command receiving unit 1401 is configured to receive a command issued by the computer human-machine interaction device. The scaling processing unit 1402 is configured to perform a scaling process on the desktop background image according to the command. After receiving the zoom command or instruction sent by the user through the computer human-machine interaction device, the command receiving unit 1401 sends the command or instruction to the scaling processing unit 1402, and the scaling processing unit 1402 reads the current desktop background image data according to the command or The instruction calculates the scaling ratio on the desktop background image Zoom in or out. When the desktop background image is scaled, the bitmap processing interface provided by the system may be called to process, or the processing function may be further processed for processing. The specific implementation process is easily understood by those skilled in the art and will not be described.
优选的, 所述装置还包括缩放区域确定单元 1403, 可以与命令接收单元 相连, 用于根据所述命令, 确定缩放区域, 所述缩放区域是整个桌面背景图片 或者桌面背景图片的局部。  Preferably, the device further includes a zooming area determining unit 1403, and may be connected to the command receiving unit, and configured to determine a zooming area according to the command, where the zooming area is a part of the entire desktop background image or the desktop background image.
缩放区域确定单元 1403根据计算机人机交互设备发出的命令来确定缩放 区域的范围, 当命令中未选择缩放区域时,认为缩放区域是整个桌面背景图片 的范围,当命令中含有对缩放区域的选择参数时,可以得到所选择的缩放区域, 此缩放区域是整个桌面背景图片的局部。  The zoom area determining unit 1403 determines the range of the zoom area according to the command issued by the computer human-machine interaction device. When the zoom area is not selected in the command, the zoom area is considered to be the range of the entire desktop background image, and the command includes the selection of the zoom area. When the parameter is obtained, the selected zoom area is obtained, which is a part of the entire desktop background image.
优选的, 所述装置还包括范围调整单元 1404, 可以与缩放区域确定单元 1403相连, 用于调整所述缩放区域的范围, 使其宽高比与桌面的宽高比接近, 以等于为例。  Preferably, the device further includes a range adjusting unit 1404, which is connectable to the zooming area determining unit 1403, and is configured to adjust the range of the zooming area so that the aspect ratio is close to the aspect ratio of the desktop, which is equal to an example.
当对被选定的桌面背景图片局部区域进行缩放时 ,可以将选定的局部区域 进行缩小或放大,还可以将局部区域直接放大成桌面背景,在区域选择操作过 程中,由于选择范围的宽高比一般都与桌面的宽高比不同,在放大该区域之前 , 范围调整单元 1404调整该区域的范围, 使当前选择区域范围的宽高比等于桌 面的宽高比。  When the local area of the selected desktop background image is zoomed, the selected local area can be reduced or enlarged, and the local area can be directly enlarged into the desktop background. During the area selection operation, the selection range is wide. The height ratio is generally different from the aspect ratio of the desktop. Before the area is enlarged, the range adjusting unit 1404 adjusts the range of the area so that the aspect ratio of the current selected area range is equal to the aspect ratio of the desktop.
优选的, 所述装置还包括缩放中心确定单元 1405, 可以与范围调整单元 1404相连, 用于根据所述命令, 确定缩放中心, 所述缩放中心是桌面中心、 所述缩放区域中心或者计算机人机交互设备光标所在位置或给定的坐标位置。  Preferably, the device further includes a zoom center determining unit 1405, and may be connected to the range adjusting unit 1404, configured to determine a zoom center according to the command, where the zoom center is a desktop center, the zoom area center, or a computer man-machine The location of the interactive device cursor or the given coordinate location.
本发明提供了多种动态缩放桌面背景的方式。根据桌面背景图片缩放位置 不同,可分为桌面背景居中缩放和根据计算机人机交互设备的光标所在位置缩 放。 当对桌面背景图片中心位置进行缩放时,在缩放过程中图片的中心位置保 持位于桌面的中心; 当对计算机人机交互设备的光标所在位置进行缩放时,在 缩放过程中光标所在位置的图像位置在桌面上保持不变。  The present invention provides a variety of ways to dynamically scale the desktop background. According to the zoom position of the desktop background image, it can be divided into the desktop background centered zoom and zoomed according to the position of the cursor of the computer human-computer interaction device. When zooming the center position of the desktop background image, the center position of the image remains at the center of the desktop during zooming; when zooming the position of the cursor of the computer human-machine interaction device, the image position of the cursor at the zooming process Stay the same on the desktop.
优选的, 所述装置还包括缩放区域移动单元 1406, 可以与缩放中心确定 单元 1405相连, 用于当所述缩放区域的中心和目标中心不重合时, 移动所述 缩放区域, 直到其中心和目标中心重合。 当选择桌面背景图片的局部区域进行缩放时,可以把局部区域的中心移动 到桌面中心上, 使其居中缩放, 并可以放到充满桌面背景。 Preferably, the apparatus further includes a zooming area moving unit 1406, and may be connected to the zoom center determining unit 1405, for moving the zooming area until the center and the target when the center of the zooming area and the target center do not coincide The center coincides. When you select a local area of the desktop background image for zooming, you can move the center of the local area to the center of the desktop, center it, and place it on the background of the desktop.
优选的,还包括显示控制参数保存单元 1407,与缩放处理单元 1402相连, 用于获取并保存所述桌面背景的显示控制参数,所述显示控制参数用于控制桌 面背景的显示。  Preferably, the display control parameter saving unit 1407 is further connected to the scaling processing unit 1402 for acquiring and saving the display control parameters of the desktop background, and the display control parameters are used for controlling the display of the desktop background.
在完成桌面背景图片的处理到达要求的现实效果后, 在得到特定命令时, 显示控制参数保存单元 1407保存当前的桌面背景的显示控制参数, 显示控制 参数内容可以包括: 桌面背景图片所对应的图片文件的唯一标识、 存储位置、 桌面背景图片的缩放比例、在桌面上的显示位置、 特效设置等信息, 以后重复 使用该桌面背景图片作为桌面背景时, 系统根据对应的图片文件的唯一标识, 在保存的多条显示控制参数中找到最新的一条,根据此显示控制参数, 自动重 现上次的显示效果。对于同一个桌面背景图片可以保存多个显示控制参数,分 别代表了不同的显示效果。  After the processing of the desktop background image is completed, the display control parameter saving unit 1407 saves the display control parameter of the current desktop background. The display control parameter content may include: a picture corresponding to the desktop background image. The unique identifier of the file, the storage location, the zoom ratio of the desktop background image, the display position on the desktop, the special effects settings, etc., when the desktop background image is repeatedly used as the desktop background, the system according to the unique identifier of the corresponding image file, The latest one is found among the saved multiple display control parameters, and the last display effect is automatically reproduced according to the display control parameter. Multiple display control parameters can be saved for the same desktop background image, representing different display effects.
优选的, 所述装置还包括,  Preferably, the device further includes
显示控制参数读取单元 1408, 可以与显示控制参数保存单元 1407相连, 用于读取显示控制参数;  The display control parameter reading unit 1408 can be connected to the display control parameter saving unit 1407 for reading the display control parameter.
显示控制参数应用单元 1409, 可以与显示控制参数读取单元 1408相连, 用于根据所述读取的显示控制参数, 显示桌面背景。  The display control parameter application unit 1409 may be connected to the display control parameter reading unit 1408 for displaying the desktop background according to the read display control parameter.
每条显示控制参数都可以用于重现桌面背景的显示效果,根据接收的命令 的不同, 显示控制参数读取单元 1408读取的显示控制参数可以按照两种方式 来读取,一种是按照当前桌面背景图片对应的图片文件的唯一标识来选择显示 控制参数,把和同一图片文件相关联的显示控制参数按时间进行排序,如果当 前的显示效果已经保存, 就读取上一条, 如果未保存当前的, 就读取最新的一 条; 另一种方式是, 把所有的显示控制参数按时间排序, 顺次读取上一条。 得 到显示控制参数后, 显示控制参数应用单元 1409按照显示控制参数中保存的 参数, 取得图片文件, 按照参数中的显示比例、 显示位置、 特效进行桌面背景 的显示。  Each display control parameter can be used to reproduce the display effect of the desktop background. According to the received command, the display control parameters read by the display control parameter reading unit 1408 can be read in two ways, one is according to Selecting the display control parameter by the unique identifier of the image file corresponding to the current background image of the desktop, and sorting the display control parameters associated with the same image file by time. If the current display effect has been saved, the previous one is read, if not saved. Currently, the latest one is read; the other way is to sort all the display control parameters by time and read the previous one in sequence. After the display control parameter is obtained, the display control parameter application unit 1409 obtains the picture file according to the parameters saved in the display control parameter, and displays the desktop background according to the display ratio, the display position, and the special effect in the parameter.
优选的, 所述装置还可以包括移动处理单元, 用于根据所述命令, 对桌面 背景图片进行移动处理。 移动处理单元: 预先定义触发移动桌面背景的操作指令,如按下键盘的方 向键是移动的命令, 当拦截到方向键被按下的命令后, 获取桌面背景图片, 把 桌面背景图片的显示位置移动后, 重新显示在桌面背景中。这里也可以采用获 取当前背景图片的显示比例、 显示位置以及桌面背景图片的原文件所在的位 置, 从文件中获取图片, 并把显示位置移动后, 显示在桌面背景上。 Preferably, the device may further include a mobile processing unit, configured to perform a mobile process on the desktop background image according to the command. The mobile processing unit: pre-defining the operation instruction for triggering the background of the mobile desktop, such as pressing the arrow key of the keyboard to move the command, and after intercepting the command that the direction key is pressed, acquiring the background image of the desktop, and displaying the position of the background image of the desktop After moving, redisplay in the desktop background. Here, it is also possible to obtain the display scale of the current background image, the display position, and the location of the original file of the desktop background image, obtain the image from the file, and move the display position to display on the desktop background.
优选的, 所述装置还包括移动步长确定单元, 用于根据所述命令, 确定移 动的步长, 所述步长是预设值或者计算机人机交互设备光标移动距离。  Preferably, the device further includes a moving step determining unit, configured to determine a step size of the moving according to the command, where the step size is a preset value or a computer human interaction device cursor moving distance.
在实现移动过程中, 可以预设每次移动的步长的值, 每次执行移动时, 只 移动固定的距离,也可以按照截取的命令中计算机人机交互设备的光标的移动 距离为移动的步长。  In the process of implementing the movement, the value of the step size of each movement may be preset, and each time the movement is performed, only a fixed distance is moved, or the moving distance of the cursor of the computer human-computer interaction device in the intercepted command may be moved. Step size.
优选的, 所述装置还包括重复移动单元, 用于重复调用移动处理单元, 直 到在移动的反方向上的桌面背景图片超出桌面背景的部分逐步显示在桌面背 景上。  Preferably, the device further comprises a repetitive moving unit for repeatedly calling the mobile processing unit until the portion of the desktop background image in the opposite direction of the movement exceeds the desktop background is gradually displayed on the desktop background.
当桌面背景图片比较大,超出了桌面的可见范围时,可以通过自动重复执 行固定步长的移动来浏览超出桌面部分的图像。  When the background image of the desktop is large and exceeds the visible range of the desktop, the image beyond the desktop portion can be browsed by automatically repeating the movement of the fixed step size.
优选的, 所述装置还可以包括特效处理单元, 用于根据所述命令, 对桌面 背景图片进行特效处理, 所述特效是图片边框修饰或者图片像素级变换处理。 对背景图片的处理也可以是加入某种特殊效果等。  Preferably, the device may further include a special effect processing unit, configured to perform special effect processing on the desktop background image according to the command, where the special effect is a picture frame modification or a picture pixel level conversion process. The processing of the background image can also be a special effect or the like.
优选的, 所述装置还包括, 切换处理单元, 用于根据所述命令, 对桌面背 景图片进行切换处理, 即直接从壁纸列表中选择目标桌面背景图片, 并将所述 目标桌面背景图片绘制到桌面上。  Preferably, the device further includes: a switching processing unit, configured to switch the desktop background image according to the command, that is, directly select a target desktop background image from the wallpaper list, and draw the target desktop background image to On the desktop.
优选的 , 所述计算机人机交互设备可以是所述计算机人机交互设备是键 盘、 鼠标、 摇杆、 跟踪球、 触摸屏、 手写笔或者无线遥控装置, 并且不限于这 些设备。 这些计算机指点设备可以通过通讯接口向计算机设备发送操作指令, 实现对计算机设备的控制操作, 其中应用最广泛的是键盘或鼠标。  Preferably, the computer human-machine interaction device may be a keyboard, a mouse, a joystick, a trackball, a touch screen, a stylus or a wireless remote control device, and is not limited to these devices. These computer pointing devices can send operational commands to the computer device through the communication interface to implement control operations on the computer device, and the most widely used one is a keyboard or a mouse.
优选的, 所述装置还可以包括: 缩放处理单元、 移动处理单元、 特效处理 单元和切换处理单元中的两种或两种以上。具体的实现过程与该装置包括缩放 处理单元的实现过程类似, 在此不再赞述。  Preferably, the apparatus may further include: two or more of a scaling processing unit, a movement processing unit, a special effect processing unit, and a switching processing unit. The specific implementation process is similar to the implementation process of the apparatus including the scaling processing unit, and is not mentioned here.
优选的, 所述装置还可以包括: 指令分区处理单元, 用于接收计算机人机 交互设备发送的命令,根据所述命令判断人机交互设备发出指令时光标所在的 指令分区, 并执行所述指令分区预设的指令。 其中, 所述命令至少包括下述之 —:在桌面上发出的单击计算机人机交互设备按键、双击计算机人机交互设备、 滚动计算机指点设备的滚轮、计算机指点设备光标的移动轨迹、 桌面区域框选 或者按下键盘的特定键, 以及它们的组合。 与通常的按钮与工具栏图标总需要 提供可视化的边界不同,本发明所述指令分区的边界在指点设备进入相应指令 分区时不显示或者不提供可视化特征。 Preferably, the device may further include: an instruction partition processing unit, configured to receive a computer man-machine The command sent by the interaction device determines, according to the command, an instruction partition where the cursor is located when the human-machine interaction device issues an instruction, and executes an instruction preset by the instruction partition. The command includes at least the following:: clicking a computer human-computer interaction device button on the desktop, double-clicking the computer human-computer interaction device, scrolling the scroll wheel of the computer pointing device, moving the track of the computer pointing device cursor, and the desktop area Frame or press a specific key on the keyboard, and a combination of them. Unlike the usual buttons and toolbar icons that always need to provide a visual boundary, the boundaries of the instruction partition of the present invention do not display or provide visual features when the pointing device enters the corresponding instruction partition.
其具体的实现过程以下述例子来说明,在本实施例中, 所述命令以鼠标发 出命令为例, 但并不限于此, 其它用于发出命令的设备或区域与鼠标类似; 此 夕卜, 在本实施例中, 殳备用的桌面背景图片共有 3张, 包括其索引及路径的 桌面背景图片列表如表 1 (也即壁纸列表)所示:  The specific implementation process is illustrated by the following example. In this embodiment, the command is a mouse command, but is not limited thereto. Other devices or areas for issuing commands are similar to the mouse; In this embodiment, the backup desktop background image has three, and the desktop background image list including the index and the path is as shown in Table 1 (that is, the wallpaper list):
表 1  Table 1
Figure imgf000022_0001
Figure imgf000022_0001
其中, 所述桌面指令分区列表如图 14所示。 所述桌面指令分区列表为一 中按规则的区域进行划分的方法, 比如桌面右侧被划分为 4个区域(可以任意 划分), 为了不妨碍用户的使用, 在桌面中的指令名称和区域分割线在正常使 用时是不可见的, 当然, 在引导用户使用的初期, 可以设定显示区域的分割线 或边界。 假定当前桌面背景图片在所述桌面指令分区列表中的索引为 n。 1501 为应用程序启动快捷方式, 1502为指令分区, 1503为指令分区分割线, 1504 为指令分区 3的操作指引提示图标, 1505为指令分区边界。  The desktop instruction partition list is as shown in FIG. 14. The desktop instruction partition list is a method for dividing the area according to the rule, for example, the right side of the desktop is divided into four areas (which can be arbitrarily divided), in order not to hinder the user's use, the instruction name and the area division in the desktop The line is invisible during normal use. Of course, the dividing line or boundary of the display area can be set at the beginning of guiding the user. Assume that the current desktop background image has an index of n in the list of desktop instruction partitions. 1501 starts a shortcut for the application, 1502 is the instruction partition, 1503 is the instruction partition split line, 1504 is the operation guide prompt icon of the instruction partition 3, and 1505 is the instruction partition boundary.
其中,每个指令分区的指令响应定义, 即桌面上的指令分区与接收特定鼠 标指令后需要执行的命令的映射关系 (也即桌面指令分区列表)如下:  The instruction response definition of each instruction partition, that is, the mapping relationship between the instruction partition on the desktop and the command to be executed after receiving a specific mouse instruction (that is, the desktop instruction partition list) is as follows:
第 1指令分区一鼠标双击后放大当前壁纸 20%;  The first command partition is double-clicked to enlarge the current wallpaper 20%;
第 2指令分区一鼠标双击后缩小当前壁纸 20%;  The second command partition is double-clicked to reduce the current wallpaper 20%;
第 3指令分区一鼠标双击后, 设置壁纸列表中第 n-1张图片为桌面壁纸; 第 4指令分区一鼠标双击后, 设置壁纸列表中第 n+1张图片为桌面壁纸。 此外, 还可以设置其它的指令分区, 比如设置第 5指令分区, 鼠标双击后 将当前壁纸恢复到缺省大小等, 在此不再——举例说明。 After the third command partition is double-clicked, the n-1th picture in the wallpaper list is set as the desktop wallpaper; the fourth command partition is set to the desktop wallpaper after the mouse double click, and the n+1th picture in the wallpaper list is set. In addition, you can also set other command partitions, such as setting the 5th command partition, returning the current wallpaper to the default size after double-clicking the mouse, etc., no longer - for example.
指令分区及其边界、分割线通常只具有特定的坐标属性用以判断鼠标光标 所处的区域,分割线也是构成指令区边界的要素。 与通常的按钮与工具栏图标 的不同之处在于,本发明所述指令分区的边界在指点设备进入或退出相应指令 分区时不显示或不提供可视化特征,也可以是其它可视化特征。例如类似 1504 的局部提示图标, 因此能够避免影响整个桌面壁纸的显示效果, 1504指引提 示图标是可选的,可以在鼠标进入该区域后短暂显示以起到提示作用,该提示 图标与常规的命令按钮或命令图标的区别在于, 它并不需要响应命令,其大小 也通常小于相应指令分区大小, 并且不一定位于指令分区内。 图 15中的箭头 暗示用户在该区域双击后将把壁纸切换为壁纸列表中的前一张图片,关于指令 分区边界的坐标量化以及区域判断,本领域的技术人员应该容易完成,在此不 具体展开描述。 做好以上设定后, 下面描述其响应过程:  The instruction partition and its boundary and split line usually only have specific coordinate attributes to determine the area where the mouse cursor is located. The split line is also the element that constitutes the boundary of the command area. The difference from the usual button and toolbar icons is that the boundary of the instruction partition of the present invention does not display or provide visual features when the pointing device enters or exits the corresponding instruction partition, and may also be other visualization features. For example, a partial hint icon similar to 1504 can avoid affecting the display effect of the entire desktop wallpaper. The 1504 guide prompt icon is optional and can be briefly displayed after the mouse enters the area to serve as a prompt, the prompt icon and the regular command. The difference between a button or a command icon is that it does not require a response command, and its size is usually smaller than the corresponding instruction partition size, and is not necessarily located within the instruction partition. The arrows in Fig. 15 suggest that the user will switch the wallpaper to the previous picture in the wallpaper list after double-clicking in the area. The coordinate quantization and area determination of the instruction partition boundary should be easily completed by those skilled in the art, and is not specific here. Expand the description. After making the above settings, the following describes its response process:
假定当前壁纸为第二张, 即 C:\photo\2.jpg。检测鼠标的操作指令, 如果检 测到鼠标在第 1指令分区双击鼠标时,则执行将当前壁纸放大 20%的操作,如 果检测到鼠标在第 2指令分区双击鼠标时, 则执行将当前壁纸缩小 20%的操 作, 如果检测到鼠标在第 3 指令分区双击鼠标时, 则执行将第 1 张图片即 "C:\photo\LJpg"设置为桌面壁纸的操作, 如果检测到鼠标在第 4指令分区双 击鼠标时, 则执行将第 3张图片即 "C:\photo\3.jpg" 设置为桌面壁纸的操作.。  Assume that the current wallpaper is the second one, which is C:\photo\2.jpg. Detects the operation command of the mouse. If it detects that the mouse double-clicks the mouse in the first command partition, it performs the operation of enlarging the current wallpaper by 20%. If it detects that the mouse double-clicks the mouse in the second command partition, the current wallpaper is reduced by 20 % operation, if it detects that the mouse double-clicks the mouse in the 3rd command partition, it performs the operation of setting the first picture "C:\photo\LJpg" as the desktop wallpaper, if it detects that the mouse is double-clicked in the 4th command area When the mouse is over, the operation of setting the third picture, "C:\photo\3.jpg", to the desktop wallpaper is performed.
在上述实时例中, 所述桌面图标都是显示在桌面上时指令分区的示意图, 对于本发明来说,还提供一种桌面图标被隐藏时桌面上指令分区的示意图,详 见图 15。  In the above real-time example, the desktop icons are schematic diagrams of the instruction partitions displayed on the desktop. For the present invention, a schematic diagram of the instruction partitions on the desktop when the desktop icons are hidden is also provided, as shown in FIG.
如图 15所示中, 包括: 1601为指令分区, 1602为指令分区分割线, 1603 为指令分区 3的操作指引提示图标(比如关闭所有活动的应用程序或在此区域 单击鼠标切换到下一张桌面背景图片等), 1604为指令分区边界, 通过在桌面 不同区域点击鼠标来启动应用程序。可以在一个指令分区为不同人机交互设备 操作动作建立不同的响应定义,如下述第一指令分区分别为鼠标的单击和双击 建立了响应定义。本实施例也同样采用了一种不规则区域划分方法,在该实施 例中, 应用程序快捷方式被隐藏, 桌面中部被划分为 3个区域, 每个指令分区 的指令响应定义如下: As shown in FIG. 15, the method includes: 1601 is an instruction partition, 1602 is an instruction partition dividing line, and 1603 is an operation guidance prompt icon of the instruction partition 3 (such as closing all active applications or clicking a mouse in this area to switch to the next A desktop background image, etc.), 1604 is the instruction partition boundary, and the application is launched by clicking a mouse on different areas of the desktop. Different response definitions can be established for different human-computer interaction device operation actions in one instruction partition. For example, the first instruction partitions respectively establish response definitions for mouse clicks and double-clicks. This embodiment also adopts an irregular area division method. In this embodiment, the application shortcut is hidden, and the middle of the desktop is divided into three areas, each instruction partition. The command response is defined as follows:
第 1指令分区指令 1一鼠标双击后启动邮件客户端;  The first instruction partition instruction 1 starts the mail client after double-clicking the mouse;
第 1指令分区指令 2—鼠标单击后 , 启动 Internet浏览器;  The first instruction partition instruction 2—after clicking the mouse, start the Internet browser;
第 2指令分区一鼠标单击后, 启动办公组件 word;  After the second command partition is clicked by a mouse, the office component word is started;
第 3指令分区一鼠标单击后, 关闭所有活动应用程序。  After the third command partition is clicked, all active applications are closed.
检测鼠标的操作指令,如果检测到鼠标在第 1指令分区双击鼠标时, 则执 行邮件客户端的启动指令; 如果检测到鼠标在第 1 指令分区单击, 则启动 Internet浏览器;如果检测到鼠标在第 2指令分区单击,则启动办公组件 word; 如检测到鼠标在第 3指令分区单击, 则只需关闭所有应用程序的操作。  Detecting the operation instruction of the mouse, if detecting that the mouse double-clicks the mouse in the first instruction partition, executing the startup instruction of the mail client; if it detects that the mouse is clicked in the first instruction partition, the Internet browser is started; if the mouse is detected When the second instruction partition is clicked, the office component word is started; if it is detected that the mouse is clicked in the third instruction partition, it is only necessary to close all application operations.
本实施例的操作提示采用了流行的鼠标跟踪提示形式,当鼠标进入所述指 令分区以后短暂停留即会激活操作提示。具体实施时,指令分区的大小及其位 置可依据实际需求进行变换。 具体实施本发明时, 指令分区的多少、 边界大小 以及操作提示方式的选择都是可变的。  The operation prompt of this embodiment adopts a popular mouse tracking prompt form, and the operation prompt is activated when the mouse enters the instruction partition for a short time. In the specific implementation, the size of the instruction partition and its position can be transformed according to actual needs. In the practice of the present invention, the number of instruction partitions, the size of the boundary, and the choice of the mode of operation are all variable.
指令分区可以按照实际需要划分,其具体的实现过程详见上述实施例,在 此不再赘述。  The instruction partition can be divided according to the actual needs. For the specific implementation process, refer to the foregoing embodiment, and details are not described herein.
需要说明的是, 所述装置中的处理单元至少还可以包括: 缩放处理单元、 移动处理单元、特效处理单元切换处理单元中的任意两个单元。其中所述各个 单元的功能和作用详见上述, 在此不再赘述。  It should be noted that the processing unit in the apparatus may further include: at least two units of the scaling processing unit, the mobile processing unit, and the special effect processing unit switching processing unit. The functions and functions of the various units are described above, and are not described here.
另外, 本发明再提供一种操作系统桌面的界面系统, 其实施例框图如图 16所示, 包括: 背景图片显示单元 1701、 快捷方式处理单元 1702、 命令接收 单元 1703和处理单元 1705。 其中所述处理单元 1705还包括: 缩放处理单元 17051、 移动处理单元 17052、 特效处理单元 17053和切换处理单元 17054, 本 图中包括四种单元为例, 此外, 也可以至少包括四种单元之一。  In addition, the present invention further provides an interface system of an operating system desktop, and a block diagram of an embodiment thereof is shown in FIG. 16, and includes: a background picture display unit 1701, a shortcut processing unit 1702, a command receiving unit 1703, and a processing unit 1705. The processing unit 1705 further includes: a scaling processing unit 17051, a movement processing unit 17052, a special effect processing unit 17053, and a switching processing unit 17054. The figure includes four units as an example, and may also include at least one of the four units. .
所述背景图片显示单元 1701作为桌面的主体对象, 覆盖整个桌面的主要 区域, 起到美化桌面的作用; 所述快捷方式处理单元 1702负责管理应用程序 快捷方式图标与对应的程序路径,在背景上显示应用程序快捷方式图标,依据 用户指令启动相应的程序; 此外, 用于启动应用程序的菜单也可以视为一种快 捷方式。 所述命令接收单元 1703 , 用于接收计算机人机交互设备发出的命令, 并且识别出背景图片处理命令; 所述处理单元 1705 , 用于才 据所述背景图片 处理命令, 直接对背景图片显示单元中的背景图片进行处理,其处理结果由处 理单元或背景图片显示单元绘制到桌面背景上。 The background image display unit 1701 serves as a main object of the desktop, covering the main area of the entire desktop, and functions to beautify the desktop; the shortcut processing unit 1702 is responsible for managing the application shortcut icon and the corresponding program path, on the background. The application shortcut icon is displayed, and the corresponding program is started according to the user instruction; in addition, the menu for starting the application can also be regarded as a shortcut. The command receiving unit 1703 is configured to receive a command sent by a computer human-machine interaction device, and identify a background image processing command; the processing unit 1705 is configured to use the background image The processing command directly processes the background image in the background image display unit, and the processing result is drawn by the processing unit or the background image display unit onto the desktop background.
假定命令处理单元预设在桌面空白区域(无应用程序快捷方式覆盖的大片 区域) 内向前推动鼠标滚轮为放大命令或指令, 所述处理单元 1705接收到鼠 标操作命令或指令时,判断其光标位置是否位于桌面空白区域以及是否向前推 动了鼠标滚轮, 如果满足该预定条件, 则由处理单元 1705完成背景图片的放 大操作。  It is assumed that the command processing unit presets to push the mouse wheel forward to enlarge the command or instruction in the blank area of the desktop (the large area covered by the application shortcut), and the processing unit 1705 determines the cursor position when receiving the mouse operation command or instruction. Whether it is located in the blank area of the desktop and whether the mouse wheel is pushed forward, if the predetermined condition is satisfied, the processing unit 1705 completes the enlargement operation of the background picture.
优先的, 所述处理单元 1705至少包括下述一种: 缩放处理单元 17051、 移动处理单元 17052、 特效处理单元 17053和切换处理单元 17504。 其中, 所 述缩放处理单元 17051 , 用于根据所述命令, 对桌面背景图片进行缩放处理; 所述移动处理单元 17052,用于根据所述命令,对桌面背景图片进行移动处理; 所述特效处理单元 17053 ,用于根据所述命令,对桌面背景图片进行特效处理, 所述特效处理是指对图片边框修饰或者图片像素级变换的处理。所述切换处理 单元 17504, 用于根据所述命令, 直接从壁纸列表中选择目标桌面背景图片, 并将所述目标桌面背景图片绘制到桌面上。也可以用于根据命令及预设的映射 关系, 直接对桌面背景图片进行切换处理。  Preferably, the processing unit 1705 includes at least one of the following: a scaling processing unit 17051, a mobile processing unit 17052, a special effect processing unit 17053, and a switching processing unit 17504. The scaling processing unit 17051 is configured to perform a scaling process on the desktop background image according to the command; the mobile processing unit 17052 is configured to perform a mobile processing on the desktop background image according to the command; The unit 17053 is configured to perform special effect processing on the desktop background image according to the command, where the special effect processing refers to a process of modifying a picture frame or converting a picture pixel level. The switching processing unit 17504 is configured to directly select a target desktop background image from the wallpaper list according to the command, and draw the target desktop background image to the desktop. It can also be used to directly switch the desktop background image according to the command and the preset mapping relationship.
优选的, 本发明实施例还可以包括: 指令分区处理单元 1704, 其中, 所 述指令分区处理单元 1704, 用于接收计算机人机交互设备发送的命令, 根据 所述命令判断人机交互设备发出指令时光标所在的指令分区,并执行所述指令 分区预设的指令。  Preferably, the embodiment of the present invention may further include: an instruction partition processing unit 1704, where the instruction partition processing unit 1704 is configured to receive a command sent by the computer human-machine interaction device, and determine, according to the command, the human-machine interaction device to issue an instruction. The instruction partition where the cursor is located, and executes the instruction preset by the instruction partition.
所述指令分区处理单元管理预设区域的设定 ,包括区域的边界及其与操作 指令约定与对应命令的发出, 例如所述指令单元管理如下预定义: 在屏幕右下 角占屏幕 1/8范围内的单击鼠标指令对应于缩小桌面背景 20%,在屏幕右上角 占屏幕 1/8范围内的双击鼠标指令对应于放大桌面背景 20%, 当鼠标在屏幕上 单击时, 右下角占屏幕 1/8范围内的单击时, 该指令单元将会发出将桌面放大 20%的命令, 该放大命令由桌面背景处理单元具体负责执行。 当将特定区域的 对应命令预设为启动特定应用程序时,指令分区处理技术也可用于应用程序的 启动。  The instruction partition processing unit manages the setting of the preset area, including the boundary of the area and the issuance of the operation instruction and the corresponding command, for example, the instruction unit management is as follows: occupying the screen 1/8 range in the lower right corner of the screen The click of the mouse command corresponds to shrinking the desktop background by 20%, and the double-clicking mouse command in the upper right corner of the screen in the range of 1/8 of the screen corresponds to enlarging the desktop background by 20%. When the mouse is clicked on the screen, the lower right corner occupies the screen. When clicked within the range of 1/8, the command unit will issue a command to enlarge the desktop by 20%, which is executed by the desktop background processing unit. The instruction partition processing technique can also be used for application startup when a corresponding command for a particular region is preset to launch a particular application.
本发明所述操作系统桌面界面系统解决了现有桌面系统不支持灵活调整 桌面背景显示效果的问题, 提高了界面的操作便利性和人性化程度。 在本发明的另一种实施方案中, 可以利用 Windows的 ActiveDesktop (活 动桌面)技术实施本发明。 Windows XP的 ActiveDesktop提供了一种编程接口, 它可以允许用户指定一个网页作为桌面,设置背景文件时需要输入该网页的地 址。 就 ActiveDesktop本身来说, 其实是提供了一个网页容器, 以一个镶嵌于 桌面或铺满整个桌面的网页浏览器窗口作为桌面背景,桌面背景上浏览器窗口 中显示的网页具有和普通网页一样的特性, 如可以有超级链接, 可以点击等。 The operating system desktop interface system of the invention solves the problem that the existing desktop system does not support flexible adjustment The problem of the desktop background display effect improves the convenience and humanity of the interface. In another embodiment of the invention, the invention may be implemented using Windows ActiveDesktop technology. Windows XP ActiveDesktop provides a programming interface that allows the user to specify a web page as the desktop, and the background file needs to be entered when the background file is set. As far as 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.
在一种利用 ActiveDesktop 技术实施本发明的方案中, 首先利用 ActiveDesktop接口的方法如 AddDesktopItem (增加桌面项)等向桌面添力口一 个显示指定网页的桌面项 (最大化时可以达到更佳效果), 该网页显示在桌面 背景之上, 桌面快捷方式之下, 实现和桌面的集成功能。 在添加到桌面的网页 中显示待操作的作为桌面背景的图片, 可使用 HTML (超文本链接标示语言) 中的内置对象来完成放缩操作。优选的,相关的放缩操作也可以在网页上的窗 口或动态网页组件中完成, 窗口在网页中可以通过 HTML对象模拟实现, 例 如通过 DHTML (动态超文本链接标示语言 )提供的事件响应功能, 在网页中 利用脚本 (如 JavaScript等)响应操作事件, 控制图片的缩放操作, 也可以利用 动态网页组件如 flash来控制图片的放缩操作。  In a solution for implementing the present invention by using ActiveDesktop technology, firstly, an ActiveDesktop interface method such as AddDesktopItem (adding a desktop item) is added to the desktop to display a desktop item of a specified webpage (a maximum effect can be achieved when maximizing). The web page is displayed on the desktop background, under the desktop shortcut, and integrated with the desktop. The image to be operated as the background of the desktop is displayed in the web page added to the desktop, and the built-in object in HTML (Hyper Text Link Markup Language) can be used to complete the zooming operation. Preferably, the related scaling operation can also be performed in a window or a dynamic webpage component on the webpage, and the window can be implemented in the webpage by using an HTML object simulation, such as an event response function provided by DHTML (Dynamic Hypertext Markup Language). In the webpage, scripts (such as JavaScript, etc.) are used to respond to operation events, control the zooming operation of the image, and dynamic webpage components such as flash can also be used to control the zooming operation of the image.
为了使网页上的图片的操作模式更适合桌面背景的特性,可以通过在网页 组件中加入桌面属性的访问并执行相应操作,如可依据鼠标位置和桌面快捷方 式的关系采取不同的响应动作: 如框选时。可以根据是否有快捷方式被选中而 决定是否执行局部放大操作。  In order to make the operation mode of the picture on the webpage more suitable for the characteristics of the desktop background, the access to the desktop attribute can be added to the webpage component and the corresponding operation can be performed, for example, different response actions can be taken according to the relationship between the mouse position and the desktop shortcut: When the box is selected. It is possible to decide whether or not to perform a partial enlargement operation depending on whether or not a shortcut is selected.
在上面介绍的利用 ActiveDesktop技术实施本发明的方案中, 既可以自动 把所述网页指定为桌面背景, 也在网页上提供调用 ActiveDesktop把本网页指 定为桌面背景的功能菜单或按钮, 当用户选择菜单或按钮时,把本网页指定为 桌面。也可以提供若干个不同的网页供用户选择。所提供的网页可以保存在本 地计算机设备中,也可以保存在远程服务器上,用户可以通过网络协议(如 ftp 或者 http等)访问到所述的网页。  In the solution for implementing the present invention by using the ActiveDesktop technology described above, the webpage can be automatically designated as the desktop background, and a function menu or button for calling the ActiveDesktop to designate the webpage as the desktop background is also provided on the webpage, when the user selects the menu. When the button is pressed, this page is designated as the desktop. Several different web pages are also available for users to choose from. The provided webpage can be saved in a local computer device or stored on a remote server, and the user can access the webpage through a network protocol (such as ftp or http).
本发明还可以用于移动设备或者数字电视机顶盒等设备 ,由于没有鼠标设 备,其操作则重点以键盘或遥控器进行操作, 除了其背景的操作的操作指令的 发出方式稍有不同外, 实现方法与前述实施例类似。本领域一般技术人员容易 理解,在其它不同的操作系统或计算机设备上实施本发明方案时,具体代码可 能会有所区别, 但其核心思想是完全一样的。 The invention can also be applied to a mobile device or a digital TV set-top box and the like. Since there is no mouse device, the operation thereof is mainly operated by a keyboard or a remote controller, except for the operation instructions of the background operation thereof. The method of implementation is similar to the previous embodiment except that the mode of transmission is slightly different. 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.
因此, 由上述实施例可知,本发明无需多次重复打开菜单或对话框对桌面 背景图片进行处理方式的设定操作, 直接对桌面背景图片进行处理,每次处理 之后直接在桌面上反映处理效果, 可以显著减少操作步骤, 节约用户时间。 无 需借助额外的控制界面和图片编辑软件来调整背景图片文件的比例及显示区 域, 直接在桌面对桌面背景图片进行放缩、平移等操作控制以改变图片的显示 比例和可见区域。无需借助额外的图片编辑软件来对桌面背景图片进行特效处 理, 能够直接对桌面背景图片加入特效, 美化桌面背景图片的显示效果。 能够 灵活的选择桌面背景图片的局部进行放大处理,并且可以按照桌面的宽高比调 整局部区域的范围,放大显示时不会引起图片显示的变形。可以记录桌面背景 图片的显示控制参数,在再次设置该图片为背景时,可以自动重现上次设置的 处理效果。  Therefore, it can be seen from the above embodiment that the present invention does not need to repeatedly open a menu or a dialog box to perform a setting operation on a desktop background image, and directly processes the desktop background image, and directly reflects the processing effect on the desktop after each processing. , can significantly reduce the operation steps, saving user time. No need to use the additional control interface and photo editing software to adjust the scale and display area of the background image file, and directly control the desktop background image on the desktop to zoom in and out to change the display scale and visible area of the image. No need for additional image editing software to special effects on the desktop background image, you can directly add special effects to the desktop background image, and beautify the desktop background image display effect. It can flexibly select the part of the desktop background image to be enlarged, and adjust the range of the local area according to the aspect ratio of the desktop. When the display is enlarged, it will not cause deformation of the image display. You can record the display control parameters of the desktop background image. When you set the image as the background again, you can automatically reproduce the last set processing effect.
以上实施例仅用以说明本发明的技术方案,而非对本发明作限制性理解。 尽管参照上述较佳实施例对本发明进行了详细说明 ,本领域的普通技术人员应 当理解: 其依然可以对本发明的技术方案进行修改或者等同替换, 而这种修改 或者等同替换并不脱离本发明技术方案的精神和范围。  The above embodiments are only intended to illustrate the technical solutions of the present invention, and are not to be construed as limiting. Although the present invention has been described in detail with reference to the preferred embodiments thereof, those skilled in the art will understand that the invention may be modified or equivalently substituted without departing from the invention. The spirit and scope of the programme.

Claims

权 利 要 求 Rights request
1、 一种处理桌面背景的方法, 其特征在于, 包括步骤:  A method for processing a desktop background, comprising the steps of:
接收计算机人机交互设备发出的命令;  Receiving a command issued by a computer human-machine interaction device;
根据所述命令, 直接对桌面背景图片进行处理。  According to the command, the desktop background image is directly processed.
2、 根据权利要求 1所述的方法, 其特征在于, 若所述处理为缩放, 则所 述方法还包括:  2. The method according to claim 1, wherein if the processing is scaling, the method further comprises:
根据所述命令,确定缩放区域, 所述缩放区域是整个桌面背景图片或者桌 面背景图片的局部;  Determining, according to the command, a zoom area, where the zoom area is a part of an entire desktop background image or a desktop background image;
根据所述命令及确定缩放区域, 直接对桌面背景图片进行缩放。  The desktop background image is directly scaled according to the command and determining the zoom area.
3、 根据权利要求 2所述的方法, 其特征在于, 所述方法包括:  3. The method according to claim 2, wherein the method comprises:
调整所述缩放区域的范围 , 使缩放区域的宽高比与桌面的宽高比接近。 The range of the zoom area is adjusted such that the aspect ratio of the zoom area is close to the aspect ratio of the desktop.
4、 根据权利要求 3所述的方法, 其特征在于, 所述方法包括: 4. The method according to claim 3, wherein the method comprises:
根据所述命令, 确定缩放中心, 所述缩放中心是桌面中心、 缩放区域中心 或者计算机人机交互设备光标所在位置或给定的坐标位置。  According to the command, a zoom center is determined, and the zoom center is a desktop center, a zoom area center, or a location of a computer human-machine interaction device cursor or a given coordinate position.
5、 根据权利要求 4所述的方法, 其特征在于, 所述方法还包括: 当所述缩放区域的中心和目标中心不重合时,移动所述缩放区域, 直到所 述缩放区域的中心和目标中心重合。  The method according to claim 4, wherein the method further comprises: when the center of the zoom area and the target center do not coincide, moving the zoom area until a center and a target of the zoom area The center coincides.
6、 根据权利要求 1所述的方法, 其特征在于, 若所述处理为移动, 则所 述方法还包括:  The method according to claim 1, wherein if the processing is mobile, the method further comprises:
根据所述命令,确定移动的步长, 所述步长是预设值或者计算机人机交互 设备光标移动距离;  Determining, according to the command, a step size of the movement, where the step size is a preset value or a moving distance of a computer human-computer interaction device cursor;
根据所述命令及确定移动的步长, 直接对桌面背景图片进行移动。  The desktop background image is directly moved according to the command and determining the step size of the movement.
7、 根据权利要求 6所述的方法, 其特征在于, 所述方法还包括: 根据所述步长重复对桌面背景图片进行移动,直到在移动反方向上的桌面 背景图片超出桌面背景的部分逐步显示在桌面背景上。  The method according to claim 6, wherein the method further comprises: repeatedly moving the desktop background image according to the step size until the desktop background image in the opposite direction of the mobile moves beyond the desktop background to display step by step. On the desktop background.
8、 根据权利要求 1所述的方法, 其特征在于, 若所述处理为加入特效, 所述特效是图片边框修饰或者图片像素级变换处理; 则所述方法还包括: 根据所述命令及加入特效, 直接对桌面背景图片进行特效处理。  The method according to claim 1, wherein, if the processing is adding a special effect, the special effect is a picture frame modification or a picture pixel level conversion process; and the method further comprises: according to the command and joining Special effects, special effects on the desktop background image.
9、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 获取并保存所述桌面背景的显示控制参数,所述显示控制参数用于控制桌 面背景的显示; The method according to claim 1, wherein the method further comprises: Obtaining and saving a display control parameter of the desktop background, where the display control parameter is used to control display of a desktop background;
读取所述显示控制参数;  Reading the display control parameter;
根据所述读取的显示控制参数, 显示桌面背景。  The desktop background is displayed according to the read display control parameters.
10、根据权利要求 1至 9任一项所述的方法, 其特征在于, 所述命令至少 包括下述任一种:  The method according to any one of claims 1 to 9, wherein the command comprises at least one of the following:
在桌面上发出的单击计算机人机交互设备按键、 双击计算机人机交互设 备、 滚动计算机指点设备的滚轮、计算机指点设备光标的移动轨迹、 桌面区域 框选、 按下键盘的特定键及其任意组合。  Click the computer human-computer interaction device button on the desktop, double-click the computer human-computer interaction device, scroll the scroll wheel of the computer pointing device, move the track of the computer pointing device cursor, select the desktop area, press the keyboard specific key, and any combination.
11、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 根据所 述命令判断人机交互设备发出指令时光标所在的指令分区,并执行所述指令分 区预设的指令。  The method according to claim 1, wherein the method further comprises: determining, according to the command, an instruction partition where the cursor is located when the human-machine interaction device issues an instruction, and executing the instruction of the instruction partition preset.
12、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 根据所 述命令, 直接从壁纸列表中选择目标桌面背景图片, 并将所述目标桌面背景图 片绘制到桌面上。  12. The method according to claim 1, wherein the method further comprises: selecting a target desktop background image directly from the wallpaper list according to the command, and drawing the target desktop background image onto the desktop.
13、 一种处理桌面背景的装置, 其特征在于, 包括:  13. A device for processing a background of a desktop, comprising:
命令接收单元, 用于接收计算机人机交互设备发出的命令;  a command receiving unit, configured to receive a command issued by a computer human-machine interaction device;
处理单元, 用于根据所述命令, 直接对桌面背景图片进行处理。  The processing unit is configured to directly process the desktop background image according to the command.
14、 根据权利要求 13所述的装置, 其特征在于, 所述处理单元包括: 缩放区域确定单元, 用于根据所述命令, 确定缩放区域, 所述缩放区域是 整个桌面背景图片或者桌面背景图片的局部;  The apparatus according to claim 13, wherein the processing unit comprises: a zooming area determining unit, configured to determine, according to the command, a zooming area, where the zooming area is an entire desktop background image or a desktop background image Part of
缩放处理单元, 用于根据所述命令及确定缩放区域, 直接对桌面背景图片 进行缩放处理。  And a scaling processing unit, configured to directly perform scaling processing on the desktop background image according to the command and determining the zoom area.
15、 根据权利要求 14所述的装置, 其特征在于, 所述装置还包括: 范围调整单元, 用于调整所述缩放区域的范围,使其宽高比与桌面的宽高 比接近。  The device according to claim 14, wherein the device further comprises: a range adjusting unit, configured to adjust a range of the zooming area such that an aspect ratio is close to a width to height ratio of the desktop.
16、 根据权利要求 14所述的装置, 其特征在于, 所述装置还包括: 缩放中心确定单元, 用于根据所述命令, 确定缩放中心, 所述缩放中心是 桌面中心、所述缩放区域中心或者计算机人机交互设备光标所在位置或给定的 坐标位置。 The device according to claim 14, wherein the device further comprises: a zoom center determining unit, configured to determine a zoom center according to the command, where the zoom center is a desktop center, and the zoom center Or the location of the computer human-computer interaction device cursor or given Coordinate position.
17、 根据权利要求 14所述的装置, 其特征在于, 所述装置还包括: 缩放区域移动单元, 用于当所述缩放区域的中心和目标中心不重合时,移 动所述缩放区域, 直到其中心和目标中心重合。  The device according to claim 14, wherein the device further comprises: a zooming area moving unit, configured to move the zooming area when the center of the zooming area and the target center do not coincide, until The center coincides with the target center.
18、 根据权利要求 13所述的装置, 其特征在于, 所述处理单元包括: 移动步长确定单元, 用于根据所述命令, 确定移动的步长, 所述步长是预 设值或者计算机人机交互设备光标移动距离;  The device according to claim 13, wherein the processing unit comprises: a moving step determining unit, configured to determine a step size of the moving according to the command, where the step size is a preset value or a computer Human-computer interaction device cursor moving distance;
移动处理单元, 用于根据所述命令及确定移动的步长, 直接对桌面背景图 片进行移动处理。  The mobile processing unit is configured to directly perform a mobile processing on the desktop background image according to the command and determining the step size of the movement.
19、 根据权利要求 18所述的装置, 其特征在于, 还包括:  The device according to claim 18, further comprising:
重复移动单元, 用于重复调用移动处理单元, 直到在移动的反方向上的桌 面背景图片超出桌面背景的部分逐步显示在桌面背景上。  The repeating mobile unit is used to repeatedly call the mobile processing unit until the desktop background image in the opposite direction of the mobile moves over the desktop background gradually on the desktop background.
20、 根据权利要求 13所述的装置, 其特征在于, 所述处理单元包括: 特效处理单元, 用于根据所述命令及加入的特效, 直接对桌面背景图片进 行特效处理, 所述特效是指对图片边框修饰或者图片像素级变换的处理。  The device according to claim 13, wherein the processing unit comprises: a special effect processing unit, configured to perform special effect processing on the desktop background image directly according to the command and the added special effect, wherein the special effect refers to The processing of picture border decoration or picture pixel level transformation.
21、 根据权利要求 13所述的装置, 其特征在于, 所述装置还包括: 显示控制参数保存单元, 用于获取并保存所述桌面背景的显示控制参数, 所述显示控制参数用于控制桌面背景的显示;  The device according to claim 13, wherein the device further comprises: a display control parameter saving unit, configured to acquire and save display control parameters of the desktop background, wherein the display control parameter is used to control the desktop Display of the background;
显示控制参数读取单元, 用于读取显示控制参数;  Displaying a control parameter reading unit for reading display control parameters;
显示控制参数应用单元, 用于根据所述读取的显示控制参数,显示桌面背 景。  A display control parameter application unit is configured to display a desktop background according to the read display control parameter.
22、 根据权利要求 13所述的装置, 其特征在于, 所述装置还包括: 指令分区处理单元, 用于接收计算机人机交互设备发送的命令,根据所述 命令判断人机交互设备发出指令时光标所在的指令分区,并执行所述指令分区 预设的指令。  The device according to claim 13, wherein the device further comprises: an instruction partition processing unit, configured to receive a command sent by the computer human-machine interaction device, and determine, according to the command, the human-computer interaction device to issue an instruction time The instruction partition where the target is located, and executes the instruction preset by the instruction partition.
23、 根据权利要求 13所述的装置, 其特征在于, 所述处理单元至少包括 下述两种:  23. The apparatus according to claim 13, wherein the processing unit comprises at least the following two types:
缩放处理单元, 用于根据所述命令, 对桌面背景图片进行缩放处理; 移动处理单元, 用于根据所述命令, 对桌面背景图片进行移动处理; 特效处理单元, 用于根据所述命令, 对桌面背景图片进行特效处理, 所述 特效处理是指对图片边框修饰或者图片像素级变换的处理; a zoom processing unit, configured to perform a scaling process on the desktop background image according to the command; and a mobile processing unit, configured to perform a mobile process on the desktop background image according to the command; The special effect processing unit is configured to perform special effect processing on the desktop background image according to the command, where the special effect processing refers to processing of a picture frame modification or a picture pixel level conversion;
切换处理单元, 用于根据所述命令, 直接从壁纸列表中选择目标桌面背景 图片, 并将所述目标桌面背景图片绘制到桌面上。  And a switching processing unit, configured to directly select a target desktop background image from the wallpaper list according to the command, and draw the target desktop background image to the desktop.
24、一种操作系统桌面的界面系统, 包括快捷方式处理单元和背景图片显 示单元, 其特征在于, 还包括:  An interface system of an operating system desktop, comprising a shortcut processing unit and a background image display unit, further comprising:
命令接收单元, 用于接收计算机人机交互设备发出的命令,识别出背景图 片处理命令;  a command receiving unit, configured to receive a command issued by the computer human-machine interaction device, and identify a background image processing command;
处理单元, 用于根据所述命令, 直接对桌面背景图片进行处理。  The processing unit is configured to directly process the desktop background image according to the command.
25、 根据权利要求 24所述的系统, 其特征在于, 所述处理单元至少包括 下述一种:  25. The system of claim 24, wherein the processing unit comprises at least one of the following:
缩放处理单元, 用于根据所述命令, 对桌面背景图片进行缩放处理; 移动处理单元, 用于根据所述命令, 对桌面背景图片进行移动处理; 特效处理单元, 用于根据所述命令, 对桌面背景图片进行特效处理, 所述 特效处理是指对图片边框修饰或者图片像素级变换的处理;  a scaling processing unit, configured to perform a scaling process on the desktop background image according to the command; a mobile processing unit, configured to perform a mobile processing on the desktop background image according to the command; and a special effect processing unit, configured to: according to the command, The background image of the desktop is subjected to special effect processing, and the special effect processing refers to processing of modifying the border of the image or transforming the pixel of the image;
切换处理单元, 用于根据所述命令, 直接从壁纸列表中选择目标桌面背景 图片, 并将所述目标桌面背景图片绘制到桌面上。  And a switching processing unit, configured to directly select a target desktop background image from the wallpaper list according to the command, and draw the target desktop background image to the desktop.
26、 根据权利要求 24所述的系统, 其特征在于, 所述系统还包括: 指令分区处理单元, 用于接收计算机人机交互设备发送的命令,根据所述 命令判断人机交互设备发出指令时光标所在的指令分区,并执行所述指令分区 预设的指令。  The system according to claim 24, wherein the system further comprises: an instruction partition processing unit, configured to receive a command sent by the computer human-machine interaction device, and determine, according to the command, the human-computer interaction device to issue an instruction time The instruction partition where the target is located, and executes the instruction preset by the instruction partition.
PCT/CN2007/071157 2006-11-30 2007-11-30 Method and apparatous for processing desktop backgrounds and interface system for os desktop WO2008064613A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200610145986 2006-11-30
CN200610145986.7 2006-11-30

Publications (1)

Publication Number Publication Date
WO2008064613A1 true WO2008064613A1 (en) 2008-06-05

Family

ID=39467457

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/071157 WO2008064613A1 (en) 2006-11-30 2007-11-30 Method and apparatous for processing desktop backgrounds and interface system for os desktop

Country Status (1)

Country Link
WO (1) WO2008064613A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647269A (en) * 2019-09-25 2020-01-03 深圳市闪联信息技术有限公司 Method and system for dynamically updating application icons based on large screen
CN111813480A (en) * 2020-07-09 2020-10-23 长沙景嘉微电子股份有限公司 Method and device for stretching 2D desktop in GPGPU (general purpose graphics processing unit) and graphics processor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5255352A (en) * 1989-08-03 1993-10-19 Computer Design, Inc. Mapping of two-dimensional surface detail on three-dimensional surfaces
CN1474267A (en) * 2002-08-09 2004-02-11 联想(北京)有限公司 Method for accurately obtaining computer screen change
US7091984B1 (en) * 2004-03-11 2006-08-15 Nvidia Corporation Scalable desktop

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5255352A (en) * 1989-08-03 1993-10-19 Computer Design, Inc. Mapping of two-dimensional surface detail on three-dimensional surfaces
CN1474267A (en) * 2002-08-09 2004-02-11 联想(北京)有限公司 Method for accurately obtaining computer screen change
US7091984B1 (en) * 2004-03-11 2006-08-15 Nvidia Corporation Scalable desktop

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647269A (en) * 2019-09-25 2020-01-03 深圳市闪联信息技术有限公司 Method and system for dynamically updating application icons based on large screen
CN111813480A (en) * 2020-07-09 2020-10-23 长沙景嘉微电子股份有限公司 Method and device for stretching 2D desktop in GPGPU (general purpose graphics processing unit) and graphics processor

Similar Documents

Publication Publication Date Title
CN101192131B (en) Method for processing table top background, device and operation system table top interface system
KR101967596B1 (en) Devices and methods for navigating between user interfaces
WO2008064610A1 (en) Method, apparatus and system for controlling background of desktop
US10073615B2 (en) Device, method, and graphical user interface for displaying user interface objects corresponding to an application
US8887061B2 (en) Variable screen magnifier user interface
USRE47592E1 (en) Managing user interface control panels
US4686522A (en) Method of editing graphic objects in an interactive draw graphic system using implicit editing actions
US9639238B2 (en) Modification of a characteristic of a user interface object
WO2008064604A1 (en) Method and device for opening and closing image browsing window
WO2011072497A1 (en) Method, device and computing equipment for window management
DE202016006323U1 (en) Device for navigating between user interfaces
US11262884B1 (en) Managing application windows of applications from different servers within a same browser window on a user device
TW201337784A (en) Virtual magnifying glass with on-the-fly control functionalities
WO2017157155A1 (en) Method and device for capturing video during playback
CN109298806B (en) Remote quick interface interaction method and device based on object recognition
EP4348411A2 (en) Systems and methods for interacting with multiple display devices
WO2021068381A1 (en) Interface display method, device and apparatus, and storage medium
WO2012106855A1 (en) Method for displaying grid-interface and mobile terminal
WO2023092992A1 (en) Page element processing method and device, and computer-readable storage medium
WO2022206097A1 (en) Image editing method and electronic device
US8856827B1 (en) System for conveying and reproducing images for interactive applications
WO2008064613A1 (en) Method and apparatous for processing desktop backgrounds and interface system for os desktop
JP4755813B2 (en) Client terminal
JP2009134753A (en) Client terminal
CN113360064A (en) Method and device for searching local area of picture, medium and electronic equipment

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: 07817347

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: 07817347

Country of ref document: EP

Kind code of ref document: A1