Hi,

Im Using Visual C++ Windows Forms in Visual studio 2008

I am trying to use ToCOLORREF (ToCOLORREF Method (ColorColor))

However, I keep getting error...
'ToCOLORREF' : is not a member of 'System:rawing::Color'

Code:
#include<gdiplus.h>
#include<Gdipluscolor.h>
#include<windows.h>
Code:
			 for(int i = 0; i < iImageW; i++)
				 {
					 for(int j = 0; j < iImageH; j++)
					 {
						 // Get the Pixel colour at i, j
						 Color c1 = Bmp1->GetPixel(i, j);

						 COLORREF crRGB = c1.ToCOLORREF();
...
Anyone know why this won't work or can help me overcome this problem?


thanks in adavnce