private void UpdateIconSet(Color colorMask, Size size, out Icon icon) { Bitmap iconBitmap; // generate the base icon iconBitmap = ViewUtils.ChangeBitmapColor(Resources.ss32Fill, colorMask); iconBitmap = ViewUtils.AddBitmapOverlay(iconBitmap); icon = Icon.FromHandle(ViewUtils.ResizeBitmap(iconBitmap, size.Width, size.Height).GetHicon()); }