Embodiment
The mask method of described dynamic play window comprises two key steps: the front end at described dynamic play window creates transparent mark window, and wherein, described mark window is provided with transparent background picture; The data content of mark is added on described mark window.
See also Fig. 1, Fig. 1 is the idiographic flow schematic 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 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. do not arrange.Create simultaneously the picture of a width monochrome, 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 then the data content with described picture is written on the window DC of described mark window, and described picture is set to the background picture of described mark window.Wherein, DC (Device Content) is the equipment content, is the device context of Graphics Device Interface.The data of showing due to window are directly used in display device carries out data interaction, and the data on described window DC will directly transfer to display device and show.
This step can realize that the convergent-divergent of picture stretches and writes described window DC by the StretchBlt order of calling in the Windows order.
S105, the attribute that described mark window is set is 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 processed.Simultaneously, by the attribute of described mark window is set, cancel the title block of described mark window; If do not cancel title block, title block can be in described mark window normally shows, and after step in can not processed by transparence yet.
S107 carries out transparence to described mark window and processes;
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, at first need the color of transparence identical with the color of described background picture in selected described mark window, and then transparence is carried out in the zone of this kind color, make described mark window become transparent window.
Owing to having write the data of described picture in described mark window, so even described mark window is by transparence, operation (such as mouse 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 processed 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 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 arranges 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 having write the data of described picture in described mark window, therefore can not penetrate described mark window and drop on described dynamic play window the mark operation of described mark window, but dropping on the background picture of described mark window.
Therefore, with the click of the mouse on described mark window, motion track, the labeled data that the operations such as keyboard input produce directly adds on the window DC of described mark window, and described mark is added on described mark window.Other partially transparents due to 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 namely completed 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 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;
Take the window DC of described mark window as buffer memory DC of template establishment, the size of described buffer memory DC etc. arrange 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 described buffer memory DC;
The 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 described buffer memory DC according to the corresponding relation of described window DC and the described buffer memory DC data content with described mark.
When the data content of mark changes, synchronously upgrade the upper data content of preserving of described buffer memory DC.
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 to carry out data interaction with display device, upgrade the content of mark, due to described buffer memory DC in advance buffer memory the data content of described mark, therefore, after the previous frame picture disply is completed, only the data content of the upper mark of preserving of described buffer memory DC need to be copied 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 to analyze again the data content that obtains mark when the Refresh Data of described window DC, 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 described mark window.When showing described mark, see through described mark window and can show content in described dynamic play window, need not the content that the data content of described mark is showed in described dynamic play window is combined 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 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 arrange module 112, transparent processing module 113 and front end display module 114.
Described asset creation module 111 is used for creating a new window as described mark window, and creates the picture of a width monochrome.The described mark window that described asset creation module 111 creates only has title block, and in addition other function button or menu bar taskbar etc. do not arrange.
Described asset creation module 111 creates the picture of a width 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 arranges module 112 and is used for the background picture that described picture is set to described mark window.Described window arranges module 112, and described image zooming is extremely identical with the size of described mark window, and then the data content with described picture is written on the window DC of described mark window, and described picture is set to the background picture of described mark window.Wherein, DC (Device Content) is the equipment content, is the device context of Graphics Device Interface.The data of showing due to window are directly used in display device carries out data interaction, and therefore the data on described window DC will directly transfer to display device and show.
Described window arranges module 112 and can call the convergent-divergent that StretchBlt order in the Windows order realizes picture and stretch and write described window DC.
Described window arranges module 112 and also is used for arranging the attribute of 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 processed.Simultaneously, described window arranges module 112 and can also by the attribute of described mark window is set, cancel the title block of described mark window; If do not cancel title block, title block can normally show in described mark window, and can not processed by transparence.
The described module 112 that arranges 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 processes.Particularly, described transparent processing module 113 can be carried out the transparence processing to described mark window by the SetLayered Window Attributes order of calling in the Windows order.Described transparent processing module 113 is called described SetLayered Window Attributes order when processing, at first need the color of transparence identical with the color of described background picture in selected described mark window, and then transparence is carried out in the zone of this kind color, make described mark window become transparent window.
Owing to having write the data of described picture in described mark window, even so after 113 pairs of described mark windows of described transparent processing module are carried out the transparence processing, operation (such as mouse 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 processed 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 having write the data of described picture in described mark window, therefore can not penetrate described mark window and drop on described dynamic play window the mark operation of described mark window, but dropping on the background picture of described mark window.
Therefore, described labeling module 13 can be clicked the mouse on described mark window, motion track, and the labeled data that the operations such as keyboard input produce directly adds on the window DC of described mark window, and described mark is added on described mark window.Other partially transparents due to 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 namely completed 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 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 take the window DC of described mark window as buffer memory DC of template establishment, and the size of described buffer memory DC etc. arrange identical with the window DC of described mark window.Described cache module 131 can create 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 the 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 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 changes, the upper data content of preserving of the synchronous described buffer memory DC of renewal of described load module 132.
Described replication module 133 is used for the data content of the upper 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 to carry out data interaction with display device, upgrade the content of mark, due to described buffer memory DC in advance buffer memory the data content of described mark, therefore, after the previous frame picture disply is completed, described replication module 133 copies to the data content of the upper mark of preserving of described buffer memory DC on the window DC of described mark window, make described window DC can be directly and display device carry out data interaction.Because analyze again the data content that obtains mark when the Refresh Data of described window DC, 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 described mark window the front end of described dynamic play window, and described labeling module 13 is added the data content of mark on described mark window to.Therefore display device is when showing described mark, see through described mark window and can show content in described dynamic play window, need not the content that the data content of described mark is showed in described dynamic play window is combined 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 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 the animation broadcast windows such as dynamic web page.
Above-described embodiment of the present invention does not consist of the restriction to protection domain of the present invention.Any modification of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in claim protection domain of the present invention.