I've been given the task to implement Identicon using Delphi. I have searched the internet and still did not find anything.
so where do I begin, is there someone here who can give an explanation?
How to generate Identicon in Delphi
589 views Asked by hnd.kustiawan At
2
There are 2 answers
0
On
I once started to port the original library to Delphi / Graphics32. However, I never found the time to finish the small project until now. The source code together with a sample application can be found on my website (see Delphi -> Graphics32).
Originally it was meant to show some new vector graphic features from the upcoming version 2.0. Despite the fact, that this has still not been released, the source code can already be compiled with the code in the trunk repository.
This is just an explanation to give you the idea of the Identicons.
Identicons are graphical representations of a bunch of bytes most likely a hash value.
Lets take a sample MD5 hash value (16 bytes)
Ok let them arrange in a different way
Now we have 16 fields each representing a byte. So we could build an image with 256 different small images. But maybe we can break it down to a less complicated method.
Lets take one byte (the first one ab) and its binary representation
Ok, let them arrange in a different way :o)
Now we have 4 fields and each field can have one of four states. And that is very easy to manage 4 different images.
Back to our byte we will get this
And back to the whole we get
The whole point here is reduction into easy to handle small parts.