I'm using DelphiX with Delphi 6 and was playing with the drawalpha functions. I have a few questions

Could anyone tell me what the patternindex integer is used for?

DXImageList1.Items[x].drawalpha(Dest: TDirectDrawSurface; const DestRect: TRect; PatternIndex: Integer; Alpha: Integer);

all I have found out is if its set to anything other than 0 it doesn't draw your image and the other is, if I draw an object using any of the alpha functions the object appears green. I guess I'm doing something wrong, anyone have any ideas on that?

Thanks

Asmod.