Do a surrogate to by the binary images of save, read, Convert image to flow, save taken in writing binary file, which USES an array of bytes as intermediaries, at the same time, record every time write images corresponding to the length of the byte array Easy to read after;
Read use also is a byte array as intermediaries; According to the length of the move the file pointer to the location of the target image data, and then read,
Read when I use corresponding to read file name, use, according to a picturebox Has a problem: write a picture reading is normal, while writing this protracted war two
For example I want to read "the unit capture" this picture, but read the card image; Is there is a situation in which an image can correspond to the display, but read another zhang, show is also another, and can't fully display,
I see, may be a picturebox to images show the specific process is not I understand, or binary file read out data does not make the picture on the picturebox produce transformation; For c # I was a rookie, the above question I ask you,
CodePudding user response:
Please look at my blog [WPF through a merger picture] (https://blog.lindexi.com/post/WPF-%E9%80%9A%E8%BF%87%E4%BD%8D%E5%A4%84%E7%90%86%E5%90%88%E5%B9%B6%E5%9B%BE%E7%89%87.html)