Summary of the invention
The technical problem to be solved in the present invention provides a kind of integrated reduced graph implementation method based on multi-screen, and overcoming prior art needs could compare each width of cloth image behind the full frame abundant display image when searching image, determines the defective of target image then.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be:
A kind of integrated reduced graph implementation method based on multi-screen comprises step:
A1, view data is loaded in the internal memory from memory storage, and writes down the address of each width of cloth image;
A2, on main screen, set up main thumbnail display window, at least one secondary screen, set up secondary thumbnail display window;
A3, each width of cloth image is simultaneously displayed in described main thumbnail display window and the described secondary thumbnail display window after according to the compression of certain ratio according to described address.
Described integrated reduced graph implementation method based on multi-screen, wherein the address pointer of described address is pointed in foundation, calls to be presented in described main thumbnail display window and the described secondary thumbnail display window described address pointer compresses each width of cloth image according to certain ratio after.
Described integrated reduced graph implementation method based on multi-screen, wherein said main thumbnail display window is handled the message that described secondary thumbnail display window is received according to the window handle of described secondary thumbnail display window.
Described integrated reduced graph implementation method based on multi-screen wherein will be presented at described main thumbnail display window by described address pointer and be in the same place according to certain demonstration is regularly arranged with all images in the described secondary thumbnail display window.
Described integrated reduced graph implementation method based on multi-screen, wherein said demonstration rule comprise according to picture material classification or according to the image date of formation and classifying.
Described integrated reduced graph implementation method based on multi-screen, wherein said main thumbnail display window and described secondary thumbnail display window be display additional information also, and described additional information comprises rise time, type, the title of image.
Described integrated reduced graph implementation method based on multi-screen wherein triggers the establishment and the image demonstration therein of described main thumbnail display window and described secondary thumbnail display window automatically by message after view data is loaded into internal memory.
Described integrated reduced graph implementation method based on multi-screen wherein is separately positioned on described main thumbnail display window and described secondary thumbnail display window the edge of main screen and secondary screen.
Described integrated reduced graph implementation method based on multi-screen wherein is arranged on described main thumbnail display window and described secondary thumbnail display window the left margin or the edge, the right of main screen and secondary screen.
Described integrated reduced graph implementation method based on multi-screen wherein is arranged on described main thumbnail display window and described secondary thumbnail display window the upper edge or the lower edge of main screen and secondary screen.
Beneficial effect of the present invention is: the present invention adopts the mode of integrated reduced graph, all images is provided the additional information of each class image according to different mode classifications and it is presented in the secondary thumbnail window of the main thumbnail window of main screen and secondary screen, the user can find the image of wanting very easily like this, and it is presented at rapidly in main screen and the secondary screen by shirtsleeve operation, both saved the time, improved efficient, also made full use of computer resource, alleviate user's working strength, more promoted the accuracy of searching.
Embodiment
With embodiment the present invention is described in further detail with reference to the accompanying drawings below:
As its name suggests, the multi-screen thumbnail shows a plurality of thumbnails when showing that carrying out image exactly on a plurality of screens shows.According to foregoing integrated reduced graph definition, in order to carry out the incorporate demonstration of multi-screen thumbnail, we are introduced with the example that is shown as of the thumbnail of two screens.When the thumbnail that carries out two screens shows synchronously, because two thumbnails also are called main thumbnail and secondary thumbnail respectively according to the primary and secondary of display.When the thumbnail that carries out a plurality of screens (such as ten) shows synchronously, be main thumbnail according to thumbnail images shown on the primary and secondary branch another name basic display unit of display equally, claiming other display (other nine) to go up thumbnail images shown is secondary thumbnail, its principle is carried out thumbnail with two screens and is shown it is the same, therefore only giving the thumbnail of introducing two screens shows, when carrying out two screen display thumbnails, ordering priority according to display, according to the common definition of computing machine, display 1 is defined as basic display unit, its screen cut and paste is a main screen, and display 2 is defined as slave display, and its screen cut and paste is secondary screen.If a plurality of displays, display 3 to last display all is defined as slave display, and its screen is also referred to as secondary screen.The thumbnail that is presented on the basic display unit is defined as main thumbnail, the thumbnail that is presented on the non-basic display unit is defined as secondary thumbnail.
1, Load Images
Image file is read in the internal memory from disk, in the main display window of screen, show a few width of cloth images that load at first.In this process, call the LoadFromFile function image is loaded into the internal memory from disk, and a few width of cloth images that will load at first are presented at the screen main window.After being loaded into internal memory from disk image, keep the pointer of load image, use to treat the back.In this step, the pointer pImg of a picture data type of application, its points to from disk and reads in view data address the internal memory.The operating process of instantiation is seen Fig. 8.
For computer system, a plurality of screens that connected can carry out rearranging of coordinate according to the mode of acquiescence, make coordinate between main screen and each the secondary screen have the coordinate points of repetition mutually continuously and not.For instance, if having connected two resolution, computing machine is 1024 * 768 screen, the upper left corner coordinate of main screen still is (0 so, 0), the upper left corner coordinate of secondary screen then becomes (1024,0), so, although on hardware, show as two computer screens, when computer-internal is discerned, will connect into a window by their a plurality of screens.The situation of a plurality of screens also is similarly, shows as a plurality of screens on the hardware, and still give tacit consent to during computer Recognition a plurality of screens is treated as the display window of a continuous coordinate.
So, before first time load image, at first obtain the number that computing machine connects screen, and the coordinate range of each screen.After obtaining concrete screen message, will determine that the size of display image area and thumbnail window are about screen or the concrete coordinate position in upper and lower location.In load image, will know the size of display image area on each screen so exactly.Load the image of coming in for the first time, still be presented at image display area, and this image display area is under a plurality of screens, will show as and be presented on a plurality of screens, and in fact, what of display screen are computer-internal very be not concerned about, it only be concerned about computer screen the viewing area size and the coordinate range that can provide.Therefore, for the first time during load image, for a plurality of screens and single screen, its principle is the same, because computer-internal couples together a plurality of display screens, has reformulated a bigger demonstration main window.That is to say, load successively from left to right, from top to bottom and show each width of cloth width of cloth image according to the size of coordinate.
As depicted in figs. 1 and 2, the image that needs are loaded loads into, and can show front one width of cloth or a few width of cloth image (viewing window layout and image classification standard and decide) this moment at main screen window and secondary screen window.
2, the window of newly-built demonstration integrated reduced graph
As shown in Figure 3, in order to create integrated thumbnail images shown, at first to create the window that is used to show thumbnail.After the pointer that has obtained Load Images, use the CreateWindow function on main screen, to create a thumbnail window, promptly main thumbnail window for convenient narration, is referred to as minWndOwer (miniature Window Ower writes a Chinese character in simplified form).When creating main thumbnail window, obtain image cursor pImg recited above, use to treat that the back shows, the notice that initiates a message is simultaneously created secondary thumbnail window, the same CreateWindow function that uses is created a thumbnail window on secondary screen, be secondary thumbnail window, be referred to as minWndSon (miniatureWindow Son).For main thumbnail window, if it is presented at screen coordinate point (0,0) and the determined rectangular area of screen coordinate point (1024,200), then only need call api function SetWindowPos, the information of its window handle and viewing area is input to this api function as parameter get final product.Secondary thumbnail window also is to call this function.Still with the top example that is assumed to be, call SetWindowPos (pSonHandle, 1024,0,1024,200, NULL) secondary thumbnail window can be presented at the rectangular area of being formed by screen coordinate point (1024,0) and (2048,200).After creating secondary thumbnail window, give main thumbnail window with its window handle pSonHandle by master routine.Like this, main thumbnail window just can obtain the information of all mouse information that take place on the secondary thumbnail, also just can control the displaying contents on the secondary thumbnail fully, and this has also established communication infrastructure for the major-minor thumbnail shows synchronously.
The concrete operations flow process: for the first time the message of load image will trigger main thumbnail and secondary thumbnail carries out the establishment of window and the demonstration of image automatically in inside, only need show when loading once more later on and need not rebulid the thumbnail window.The integrated reduced graph that shows as shown in Figure 3.Wherein additional information have in the number of type, image sequence of patient's name, shooting date, the image of image source and each sequence comprise the number of image.
3, all images is presented in the integrated reduced graph display window
In the main thumbnail window of being created, call the image cursor pImg that the front obtains in the above, and all images is specific together regularly arranged according to certain.Such as classifying according to the captured object of image, all images that belong to certain object all will be brought together demonstration so; At all images of this object, can also carry out the arrangement second time on the date that generates according to image and show.All images all dwindles according to the certain compression ratio example and is presented in the thumbnail window.In procedure for displaying, employed function is the OnPaint among the VC, and promptly in this function, the dc (contextual devices) that calls the thumbnail window shows all thumbnails.For secondary thumbnail, call pSonHandle (handle of secondary thumbnail) by main thumbnail it is carried out above-mentioned identical operations, the image that image cursor pImg can be comprised is presented in the secondary thumbnail window.
The concrete operations flow process of main thumbnail:
All will be searched image be presented at all in the integrated main thumbnail, just can see the main thumbnail image that is hidden in the back as long as drag the slider bar or the rolling mouse roller on main thumbnail window next door.In the roll mouse roller, the OnMouseWheel message of window meeting responding system, and then move main thumbnail window content displayed.Certainly move the scroll bar on next door, then responding corresponding scroll bar change message is removable main thumbnail window content displayed.Meanwhile, this message is sent to secondary thumbnail window by secondary thumbnail window handle pSonHandle, make it that moving of scroll bar also be taken place simultaneously, and all displaying contents on the main thumbnail are presented at it on secondary thumbnail window by the OnPaint message of calling pSonHandle.
The concrete operations flow process of secondary thumbnail:
Roll mouse roller on secondary thumbnail, secondary thumbnail window will respond OnMouseWheel message, and moving of scroll bar will be taken place.At this moment, main thumbnail gets access to the information such as position that message that secondary thumbnail transmits and roller move, will identical scroll bar take place on main thumbnail window move, and the particular location that moves according to scroll bar, corresponding mobile also will take place in the thumbnail images shown image.When the image of main thumbnail was moved, main thumbnail will be given pSonHandle own new display image pointer pImg, and called the OnPaint function by secondary thumbnail and show.Thereby finished one because of operating secondary thumbnail window, cause that secondary thumbnail window changes, so notify main thumbnail to change accordingly, and the display image pointer pImg after will being changed by main thumbnail gives the overall process that major-minor thumbnail that secondary thumbnail shows shows synchronously.Certainly, other mouse action for secondary thumbnail also is to show synchronously according to same flow process.
As Fig. 4, Fig. 5, Fig. 6 and shown in Figure 7, for easy to operate, thumbnail display window can be arranged on arbitrary edge of screen, specifically can be the last lower edge or the edge, the left and right sides of screen.
4, the various mouse information of response in the thumbnail window
According to the narration of front, know that carry out identical operations for main thumbnail and secondary thumbnail, the effect of generation all will be same.Therefore in the introduction of the various mouse information of response, no longer to the demonstration of major-minor thumbnail and explaining of the synchronous demonstration of action.
For the former figure of interested thumbnail representative being presented in the main screen window, respond Window message, as the message that left mouse button is pressed, the message that mouse moves and pulls etc.When mouse was pressed on certain thumbnail, thumbnail responded OnLButtonDown message, will obtain the specifying information of thumbnail in this message.When fruit when pulling (pin left mouse button and do not put rolling mouse), the thumbnail information that main thumbnail window just obtains in the OnLButtonDown message passes to OnMouseMove message; Want window displayed when mouse moves to, when decontroling left mouse button then, can respond OnLButtonUp message in the main screen window, main window can receive the information that transmits from the thumbnail mouse information in this message.
The OnLButtonDown message that the response mouse is pressed in thumbnail, this moment, rolling mouse was to main window, response OnMouseMove message in moving process, decontrol mouse response OnLButtonUp message, the image of front is presented in the demonstration main window of the main screen of decontroling left mouse button or secondary screen, finishes the demonstration of user selected image.
5, display image in major-minor screen display window
No matter display window (is at main screen or at secondary screen, all be under the jurisdiction of a display window) when responding OnLButtonUp message, OnLButtonDown message and OnMouseMove message that the thumbnail window is arranged when can judge before this message, if have, to from these two message of thumbnail, obtain the thumbnail information that they have, promptly obtain entrained thumbnail pointer, and then it is presented on the demonstration main window of main screen or secondary screen.Thereby finished thumbnail and assisted to carry out the function that image shows.Concrete concrete operations flow process as shown in Figure 9.
Those skilled in the art do not break away from essence of the present invention and spirit, can there be the various deformation scheme to realize the present invention, the above only is the preferable feasible embodiment of the present invention, be not so limit to interest field of the present invention, the equivalent structure that all utilizations instructions of the present invention and accompanying drawing content are done changes, and all is contained within the interest field of the present invention.