Younger brother work demand, with the Winform wrote a control that inherits from the panel, in his onpaint method redraw display pictures, pictures will be very long (line scan camera), to the appearance of the 15 k * 40 k, then I need to do a drawing on the images (resizing, translation, etc., are implemented)
Problem: adjusting the upper drawing every time need to redraw the entire panel, when a larger image, display slowly slowly, this leads to adjust the upper drawing content is also very card
Then think like WPF, covered with a layer of other controls, set to transparent to perform the drawing, the lower display images, only then I cracked
No matter by redrawing the upper cover by any means of control, the whole area will refresh, and then at the bottom of the image layer will continue to redraw
Want to the next, try
1 hang lower specific time intelligent control: call control. The SuspendLayout (); Useless
2 intercept the message SendMessage (pbxImage. Handle, WM_SETREDRAW, 0, IntPtr. Zero). Useless
Want to ask each big grandma, have what idea can explore
Must use winform, because the image to display a bitmap, the enlarged to see clarity gray, WPF didn't find what method can implement the map
Can use 20 points in all; (although the bosses don't care
CodePudding user response:
600 million - pixel image? The direct load card!Solution: section of the pyramid, refer to baidu map, etc.
CodePudding user response: