예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="rect"></param>
        /// <param name="fillvalue"></param>
        public void BltColorFill(ref Rectangle rect, int fillvalue)
        {
            var innerRect = new RECT {
                Left   = rect.Left,
                Top    = rect.Top,
                Bottom = rect.Bottom,
                Right  = rect.Right
            };

            _surface.BltColorFill(innerRect, fillvalue);
            rect = Rectangle.FromLTRB(innerRect.Left, innerRect.Top, innerRect.Right, innerRect.Bottom);
        }
예제 #2
0
 /// <summary>
 /// Fills the surface.
 /// </summary>
 public void fill(Color c)
 {
     surface.BltColorFill(ref clip, (int)colorToFill(c));
 }