public GDIBrush(Bitmap pattern) { hBrush = NativeMethods.CreatePatternBrush(pattern.GetHbitmap()); Create(); }