Get Preview from Model

I'm new with macro and I want to capture the preview of the Assembly model in solid work

I was use GetPreviewBitmap but the output seem to be wrong color

can anyone give me an idea to do this?

and what is GetViewDIB ? can i use this to get the bitmap preview file?

SolidworksApi macros