c# - Image won't replace while the program is running -


i'm trying make screen sharing program, program flows this:

  1. capture screen
  2. slice 9
  3. compare new slice old slice
  4. replace different slice
  5. upload web (with new slice)

but i've got problems replacing slices (in replace function). source have searched need convert bitmap image (the slice) string, can replace. there's no example converting bitmap double array strings.

is there possibility replace image without convert strings?

why need replace bitmap data using string intermediate? can use bitmap manipulation functions fine. also, i'm having trouble understanding algorithm. bitmap of whole screen. cut 9 parts (are corners, edges , center?), compare each of slices old versions 1 one, replace ones changed, , upload whole bitmap? don't want upload each of slices separately, uploading ones changed? otherwise doesn't make sense slicing @ all, or it?

now, it's true converting data string lets use string comparison functions , other stuff that, that's awful idea. fastest way compare 2 byte arrays using memcmp function in msvcrt.dll. answer gives solution - https://stackoverflow.com/a/2038515/3032289, including reading data original bitmaps.

then send slices aren't same older versions , you're done, no replacing needed.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -