Hi, theoretically it's possible but I don't see much use here...
A painting is what?, a kind of grid in 1, 2 or 3 dimensions...
Dimension 1 = X or Y (I don't know), dimension 2 = Same, dimension 3 = depth (imagine a cube)
A dictionary is what? a kind of 2-dimensional table (1x2 or 2x1 = X rows, 2 columns), the first dimension contains the key, the second dimension contains the value.
Go through your table (each element), dimension by dimension, create a key on your dictionary, then put the value of your table (value currently read) in it.
For the key, it is up to you to see what you want to put, you can for example either put a key that represents the position in your array, or meter a key that is equal to the value of your array.
Here is an example:
Your table 1 dimension -> MyTable(2) = 2 possible values
MyTable(0) = "abc"
MyTable(1) = "def"
MyTable(2) = "ghi"
Your dictionary -> MyDictionary()
MyDictionary() = Key: "0", Value: "abc"
MyDictionary() = Key: "1", Value: "def"
MyDictionary() = Key: "2", Value: "ghi"
Or like this:
MyDictionary() = Key: "abc", Value: "abc"
MyDictionary() = Key: "def", Value: "def"
MyDictionary() = Key: "ghi", Value: "ghi"
Have I made myself clear?