Example #1
0
        private void DoImageToolBarControlPaint(HCToolBarControl control, int left, int top, HCCanvas canvas)
        {
            string resName = "tool" + control.Tag.ToString();
            Icon   icon    = (Icon)Resources.ResourceManager.GetObject(resName);
            Bitmap vBmp    = ((System.Drawing.Icon)icon).ToBitmap();

            canvas.Draw(left + 4, top + 4, vBmp);
        }