public GDIBrush(IntPtr hBMP_Pattern) { hBrush = NativeMethods.CreatePatternBrush(hBMP_Pattern); //if (hBrush==(IntPtr)0) //Alsing.Debug.Debugger.WriteLine ("Failed to create brush with color : {0}",color.ToString()); Create(); }