Home > Net >  C # binary images processing
C # binary images processing

Time:09-16

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)

[WPF modified image color] (https://blog.lindexi.com/post/WPF-%E4%BF%AE%E6%94%B9%E5%9B%BE%E7%89%87%E9%A2%9C%E8%89%B2.html)

CodePudding user response:

reference 1st floor lindexi_gd response:
please have a 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)

[WPF modified image color] (https://blog.lindexi.com/post/WPF-%E4%BF%AE%E6%94%B9%E5%9B%BE%E7%89%87%E9%A2%9C%E8%89%B2.html)


Upstairs to find a can and it is also generally do game development, maps, figures elves, front-end CSS actually did,

The building Lord are interested in can seek "game development characters elves, speaking, reading and writing"

Directly but my personal advice as epub book format, or markdown format, both as a matter of fact, after all, the publishing industry standards, has a large number of use, finished-product stock can be directly used to use the
https://www.nuget.org/packages? Q=epub
https://www.nuget.org/packages? Q=markdown

You can already see a ton of developers in the use of these two standards

CodePudding user response:

Another option is the standard format for Linux tar packages, in fact I looked at your code, is actually the tar packages, an index file structure, the content of bytes in a file

CodePudding user response:

Looked at half a day do not know to write what, so don't want to see long code; Estimates of the problem is that you have more pictures with a stream, with a List of storage and then according to the rules apply
  •  Tags:  
  • C#
  • Related