Home > Net >  For help: the known image data byte [], how to use the byte [] for rotating picture
For help: the known image data byte [], how to use the byte [] for rotating picture

Time:11-22

Found in batch processing, if the Image to use this class, call Image. The Save () Save pictures, takes up too much resource, and result in congestion, slow speed, see: https://bbs.csdn.net/topics/396633616
Now want to use circuitous way, through the way of data flow processing, using ExifLibrary classes, access to the image data byte [], the algorithm of how to handle arrays, by rotating images?

CodePudding user response:

Finally, don't use bitmap image of these classes, because by the time the last save save () efficiency is too slow

CodePudding user response:

If it is pure bitmap without compression, directly using matrix transformation

CodePudding user response:

refer to the second floor assky124 response:
if it is pure bitmap without compression, directly using matrix transformation line
because the original data is JPG, so the compression...

CodePudding user response:

Base64 not sweet

CodePudding user response:

With a StopWatch and see which one takes longer, can use multiple threads or processes, generally a photo is also a millisecond, unless your picture extremely large

CodePudding user response:

Winform image rotation is image deformation processing

http://bbs.cskin.net/thread-15494-1-1.html
Winform example

CodePudding user response:

reference 5 floor assky124 reply:
with a StopWatch and see which one takes longer, you can use multiple threads or processes to handle, the general picture is also a millisecond, unless your photos especially large

Image. FromFile (filepath) open the camera files with 200 + ms
Saved to the local Image. Save (savepath) 200 + ms
Every picture about 10 m, the operation is a a about 500 ms, speed of about 20 m/s, and tried to use multithreading, maximum speed to 60 m/s, I will copy the data is the data of aerial equipment, connecting a cable 5 cameras, each camera dozens of gigabytes of data, channel, go see if simply copy with the fileInfo CopyTo (), average speed reached 320 m/s, but the rotation I multithreaded processing images, maximum speed to 60 m/s, I was the strangest multithreaded didn't tip speed, more threads open speed slow down instead,

CodePudding user response:

reference side of the ocean, 4/f response:
base64 not sweet

Base64 can rotate images?

CodePudding user response:

https://blog.csdn.net/bravebean/article/details/51374077
  •  Tags:  
  • C#
  • Related