Home > Net >  /just a few points about winform redrawn after covering part of the control or WPF control available
/just a few points about winform redrawn after covering part of the control or WPF control available

Time:12-03

Good bosses
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:

reference 1st floor ziqi0716 response:
600 million pixels of images? The direct load card!
Solution: section of the pyramid, reference baidu map.

Currently does not do too much work, directly from memory, according to the new bitmap to capture part of the production reality problem is also good, after all, don't drag, is drawing now, if there are not redraw the lower picture only redraw the upper display method

CodePudding user response:

More BMP don't came out of the hierarchy?
  •  Tags:  
  • C#
  • Related