Embodiment
The mask method of described dynamic play window comprises two key steps: the front end at described dynamic play window is created transparent mark window, and wherein, described mark window is provided with transparent background picture; The data content of mark is added on the described mark window.
See also Fig. 1, Fig. 1 is the idiographic flow synoptic diagram of the mask method of dynamic play window of the present invention.
The idiographic flow step of the mask method of described dynamic play window comprises:
S101 creates a new window as the mark window, and creates the picture of a width of cloth monochrome;
When needs mark the dynamic play window, create a new window as the mark window, the mark window of described new establishment only has title block, and in addition other function button or menu bar, taskbar etc. are not provided with.Create the picture of a width of cloth monochrome simultaneously, the form of described picture is not limit, and the single color of described picture can be any color, but preferably is set to the picture of white.
S103, described picture is set to the background picture of described mark window;
Specific practice is that described image zooming is extremely identical with the size of described mark window, and the data content with described picture is written on the window DC of described mark window then, and described picture is set to the background picture of described mark window.Wherein, DC (Device Content) is a device content, is the device context of Graphics Device Interface.Carry out data interaction because the data that window is showed are directly used in display device, the data on the described window DC will directly transfer to display device and show.
This step can realize the convergent-divergent stretching of picture and write described window DC by the StretchBlt order of calling in the Windows order.
S105, the attribute that described mark window is set is a mode of extension;
The attribute of described mark window is set, and described mark window is set to mode of extension, and wherein said mode of extension support is carried out transparence to window and handled.Simultaneously, by the attribute of described mark window is set, cancel the title block of described mark window; If do not cancel title block, then title block can be in described mark window normally shows, and after step in can not handled by transparence yet.
S107 carries out transparence to described mark window and handles;
Specifically can carry out the transparence processing to described mark window by the SetLayered Window Attributes order of calling in the Windows order, when calling described SetLayered Window Attributes order, need the color of transparence identical in the at first selected described mark window with the color of described background picture, and then the zone of this kind color carried out transparence, make described mark window become transparent window.
Owing to write the data of described picture in the described mark window, so even described mark window is by transparence, operation (for example click etc.) to described mark window can not penetrate described mark window yet, but can drop on equally on the described background picture of being handled by transparence, can other windows of opening in described mark window rear end not impacted.
S109 is arranged on described mark window the front end of described dynamic play window;
With the front end of described mark windows overlay at described dynamic play window, the user can see through the content that described mark window is watched described dynamic play window.
S111 adds the data content that marks on the described mark window to.
Before execution in step S111, also the size of described mark window can be arranged to identically with the size of described dynamic play window, perhaps the size according to the mark scope specifically is provided with the size of described mark window.
Because transparent described mark window is arranged on the front end of described dynamic play window, so in fact the flag operation of described dynamic play window is become operation to described mark window, owing to write the data of described picture in the described mark window, therefore can not penetrate described mark window to the mark operation of described mark window and drop on the described dynamic play window, but drop on the background picture of described mark window.
Therefore, with click, the motion track on the described mark window, the labeled data that operations such as keyboard input produce directly adds on the window DC of described mark window, and described mark is added on the described mark window.Because other partially transparents of described mark window, and be arranged on the front end of described dynamic play window, therefore when display device showed, what watch from display device was the content of described active window and the marked content on upper strata, has promptly finished the mark to described dynamic play window.
See also Fig. 2, Fig. 2 is the flow chart of steps of adding a kind of preferred implementation of window mark in the mask method of dynamic play window of the present invention.
In order further to improve the refresh rate of the marked content in the described mark window, as a kind of preferred implementation, described step S111 comprises following substep:
S113 is according to buffer memory DC of window DC establishment of described mark window;
Window DC with described mark window is buffer memory DC of template establishment, and the size of described buffer memory DC etc. are provided with identical with the window DC of described mark window.Described buffer memory DC can create in internal memory or create in other high-speed cache, and described buffer memory DC is used for the data content that buffer memory will add the mark of described mark window to.
S115 is kept at the data content that marks on the described buffer memory DC;
Marks such as click, motion track or the keyboard input operation of the mouse on the background picture of described mark window is converted into concrete data content, and described data content comprises the type of mark, the content of mark, and the information such as position coordinates of mark.Be kept on the described buffer memory DC according to the corresponding relation of described window DC and described buffer memory DC data content described mark.
When the data content of mark changes, upgrade described buffer memory DC synchronously and go up the data content of preserving.
S117, the data content of described buffer memory DC being gone up the mark of preserving copies on the window DC of described mark window.
The window DC of described mark window need carry out data interaction with display device, upgrade the content of mark, since described buffer memory DC in advance buffer memory the data content of described mark, therefore, after the demonstration of previous frame picture is finished, the data content that only described buffer memory DC need be gone up the mark of preserving copies on the window DC of described mark window, described window DC just can be directly and display device carry out data interaction.Because need not when the Refresh Data of described window DC, to analyze again the data content that obtains mark, therefore can improve the data interaction speed of described window DC and display device, improve the refresh rate of described mark window.
Can the data content that described buffer memory DC goes up the mark of preserving be copied on the window DC of described mark window by the BitBlt order of calling in the Windows order in this step.
Compared with prior art, in the mask method of dynamic play window of the present invention, described mark window is arranged on the front end of described dynamic play window, and the data content that marks is added on the described mark window.When showing described mark, see through described mark window and can show content in the described dynamic play window, the content that need not to show in the data content of described mark and the described dynamic play window combines processing, therefore the mask method of described dynamic play window is realized fairly simple, and take less processor resource, can the content of playing in the described dynamic play window not impacted.
See also Fig. 3, Fig. 3 is the structural representation of the labeling system of dynamic play window of the present invention.
The labeling system 10 of described dynamic play window comprises: mark window generation module 11 and labeling module 13, described mark window generation module 11 is used for creating transparent mark window at the front end of described dynamic play window, wherein, described mark window is provided with transparent background picture; Described labeling module 13 is used for adding the data content of mark to described mark window.
See also Fig. 4, Fig. 4 is the structural representation of mark window generation module of the labeling system of dynamic play window of the present invention.
Described mark window generation module 11 comprises that asset creation module 111, window are provided with module 112, transparent processing module 113 and front end display module 114.
Described asset creation module 111 is used to create a new window as described mark window, and creates the picture of a width of cloth monochrome.The described mark window that described asset creation module 111 is created only has title block, and in addition other function button or menu bar taskbar etc. are not provided with.
Described asset creation module 111 is created the picture of a width of cloth monochrome simultaneously, and the form of described picture is not limit, and the single color of described picture can be any color, but preferably is set to the picture of white.
Described window is provided with module 112 and is used for the background picture that described picture is set to described mark window.It is extremely identical with the size of described mark window with described image zooming that described window is provided with module 112, and the data content with described picture is written on the window DC of described mark window then, and described picture is set to the background picture of described mark window.Wherein, DC (Device Content) is a device content, is the device context of Graphics Device Interface.Carry out data interaction because the data that window is showed are directly used in display device, therefore the data on the described window DC will directly transfer to display device and show.
Described window is provided with module 112 and can calls the convergent-divergent stretching of the StretchBlt order realization picture in the Windows order and write described window DC.
Described window is provided with the attribute that module 112 also is used to be provided with described mark window, and described mark window is set to mode of extension, and wherein said mode of extension support is carried out transparence to window and handled.Simultaneously, described window is provided with module 112 and can also cancels the title block of described mark window by the attribute of described mark window is set; If do not cancel title block, then title block can normally show in described mark window, and can not handled by transparence.
The described module 112 that is provided with can also be according to the size of described dynamic play window, described mark window is arranged to identical with the size of described dynamic play window, and the size of described mark window perhaps specifically is set according to the size of mark scope.
Described transparent processing module 113 is used for that described mark window is carried out transparence and handles.Particularly, described transparent processing module 113 can be carried out the transparence processing to described mark window by the SetLayered WindowAttributes order of calling in the Windows order.Described transparent processing module 113 is called described SetLayered Window Attributes and is ordered when handling, need the color of transparence identical in the at first selected described mark window with the color of described background picture, and then the zone of this kind color carried out transparence, make described mark window become transparent window.
Owing to write the data of described picture in the described mark window, even so after 113 pairs of described mark windows of described transparent processing module are carried out the transparence processing, operation (for example click etc.) to described mark window can not penetrate described mark window yet, but can drop on equally on the described background picture of being handled by transparence, can other windows of opening in described mark window rear end not impacted.
Described front end display module 114 is used for the front end of described mark windows overlay at described dynamic play window, and the content of described dynamic play window can see through described mark window and show.
Because described front end display module 114 is arranged on transparent described mark window the front end of described dynamic play window, so in fact the flag operation of described dynamic play window is become operation to described mark window, owing to write the data of described picture in the described mark window, therefore can not penetrate described mark window to the mark operation of described mark window and drop on the described dynamic play window, but drop on the background picture of described mark window.
Therefore, described labeling module 13 can be with click, the motion track on the described mark window, and the labeled data that operations such as keyboard input produce directly adds on the window DC of described mark window, and described mark is added on the described mark window.Because other partially transparents of described mark window, and be arranged on the front end of described dynamic play window, therefore when display device showed, what watch from display device was the content of described active window and the marked content on upper strata, has promptly finished the mark to described dynamic play window.
See also Fig. 5, Fig. 5 is the structural representation of a kind of preferred implementation of labeling module of active window labeling system of the present invention.
In order further to improve the refresh rate of the marked content in the described mark window, a kind of described labeling module 13 preferred implementations are provided, described labeling module 13 comprises cache module 131, load module 132 and replication module 133.
Described cache module 131 is used for creating a buffer memory DC according to the window DC of described mark window.
Described cache module 131 is buffer memory DC of template establishment with the window DC of described mark window, and the size of described buffer memory DC etc. are provided with identical with the window DC of described mark window.Described cache module 131 can be created described buffer memory DC in internal memory, also can create described buffer memory DC in other high-speed cache, and described buffer memory DC is used for the data content that buffer memory will add the mark of described mark window to.
Described load module 132 is used for the data content of mark is kept at described buffer memory DC.
Described load module 132 is converted into concrete data content with marks such as click, motion track or the keyboard input operation of the mouse on the background picture of described mark window; described data content comprises the type of mark; the content of mark, and the information such as position coordinates of mark.Described load module 132 is kept on the described buffer memory DC according to the corresponding relation of described window DC and the described buffer memory DC data content with described mark.
And when the data content of mark changed, described load module 132 upgraded described buffer memory DC synchronously and goes up the data content of preserving.
Described replication module 133 is used for the data content of the last mark of preserving of described buffer memory DC is copied to the window DC of described mark window.
The window DC of described mark window need carry out data interaction with display device, upgrade the content of mark, since described buffer memory DC in advance buffer memory the data content of described mark, therefore, after the demonstration of previous frame picture is finished, described replication module 133 copies to the data content of the mark that described buffer memory DC go up to preserve on the window DC of described mark window, make described window DC can be directly and display device carry out data interaction.Because when the Refresh Data of described window DC, analyze the data content that obtains mark again, therefore can improve the data interaction speed of described window DC and display device, improve the refresh rate of described mark window.
Described replication module 133 can copy to the data content that described buffer memory DC goes up the mark of preserving on the window DC of described mark window by the BitBlt order of calling in the Windows order.
Compared with prior art, in the labeling system 10 of dynamic play window of the present invention, described mark window generation module 11 is arranged on the front end of described dynamic play window with described mark window, and described labeling module 13 is added the data content of mark on the described mark window to.Therefore display device is when showing described mark, see through described mark window and can show content in the described dynamic play window, the content that need not to show in the data content of described mark and the described dynamic play window combines processing, so the implementation method of the labeling system 10 of dynamic play window of the present invention is fairly simple, and take less processor resource, can the content of playing in the described dynamic play window not impacted.
The labeling system of the mask method of dynamic play window of the present invention and dynamic play window can be applied to the mark to the video playback window, use the mask method of dynamic play window of the present invention or the labeling system of dynamic play window, when guaranteeing the video normal play, smoothness, level and smooth mark can be carried out again, video display, explanation can be carried out easily.The labeling system of the mask method of dynamic play window of the present invention and dynamic play window can also be applied to the mark to the FLASH broadcast window, and the mark of other animation broadcast windows such as dynamic web page.
Above-described embodiment of the present invention does not constitute the qualification to protection domain of the present invention.Any modification of being done within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within the claim protection domain of the present invention.