Quote Originally Posted by Asmod
Could anyone tell me what the patternindex integer is used for?
It is used to allow you to combine multiple images the same size, into one single image, which is especially useful for animation and tiling. You can divide the image up using the PatterWidth and Pattern Height properties of the TPictureCollectionItem object (also the SkipHeight and SkipWidth properties)

The PatternIndex then specifies which part of the image to draw:
Code:
-------------------
|0 |1 |2| 3| 4| 5|
-------------------
|6 |7 |8| 9|10|11|
-------------------
|12|13|14|15|16|17|
-------------------

I have no idea why anything would be going green. The Alpha value should be between 0 and 255.