Jul 15, 2015 03:22 AM
(This post was last modified: May 10, 2017 02:58 PM by Visual Freedom.)
This thread got closed by me. Thanks for your interest!
|
.NET
Closed |
|
Jul 15, 2015 03:22 AM
(This post was last modified: May 10, 2017 02:58 PM by Visual Freedom.)
This thread got closed by me. Thanks for your interest!
Good job! How would the image be translated back into text?
Jul 18, 2015 07:13 AM
(This post was last modified: Jul 18, 2015 07:17 AM by ubbelol.)
This seems pretty inefficient honestly, at least if you want it to be actually compact. If we take ASCII as an example you know the values only range from 0 to 127 (or 255) which fits inside a byte. This means we can fit multiple characters into a single pixel depending on what format we use instead of these big "blocks" you make. I took the liberty to write up a little example that turns a string into a bitmap with 32 bit pixels (ARGB). With 32 bit pixels we can fit 4 characters inside each pixel, which means a 50x50 image can contain 10,000 (50*50*4) characters instead of a 200x300 image which you mentioned in your post.
My image containing 10,000 random characters: ![]() My (sloppy) code: https://gist.github.com/UbbeLoL/644233a9f5fed8586273 Maybe I'm misunderstanding something about your algorithm, so feel free to correct me.
Probably coding some useless shit.
Bit like what I released a while back except mine could also convert small files into images large files just took to long using the loops I was using.
Sure you could improve on it. https://hackforums.net/showthread.php?tid=4460581 🎉 ![]() |
|
|
| Possibly Related Threads... | |||
| Thread / Author | Replies | Views | Last Post |
| [C#] by _CASP3R_Jan 5, 2019 12:05 PM | 9 | 303 |
Jan 5, 2019 12:05 PM Last Post: _CASP3R_ |
| [C#] by ℓιℓ υzι νєятNov 18, 2015 02:52 AM | 5 | 198 |
Nov 18, 2015 02:52 AM Last Post: ImYourFather |
| [C#] by ℓιℓ υzι νєятNov 16, 2015 01:50 PM | 1 | 141 |
Nov 16, 2015 01:50 PM Last Post: VmX5 |