Exemplo n.º 1
0
        /// <summary>
        /// Draws this icon in the specified drawing context.
        /// </summary>
        /// <param name="g">Drawing context in which the icon will be rendered.</param>
        /// <param name="rect">The bounds of the rendered icon. No padding will be applied to the rectangle.</param>
        public void Draw(Graphics g, Rectangle rect)
        {
            var renderer = new GdiPlusRenderer(g);

            iconGenerator.Generate(renderer, rect, Style, hash);
        }