Esempio n. 1
0
        public bool Clear()
        {
            FIARECT fiaRect = new FIARECT(0, 0, this.Width - 1, this.Height - 1);

            if (this.IsGreyScale)
            {
                return(FreeImage.DrawSolidRectangle(this.Dib, fiaRect, 0.0f));
            }
            else
            {
                return(FreeImage.DrawColourSolidRect(this.Dib, fiaRect, new RGBQUAD(Color.Black)));
            }
        }
Esempio n. 2
0
        public bool DrawColourSolidRect(Rectangle rect, RGBQUAD colour)
        {
            FIARECT fiaRect = new FIARECT(rect);

            return(FreeImage.DrawColourSolidRect(this.Dib, fiaRect, colour));
        }
Esempio n. 3
0
 public bool DrawColourSolidRect(FIARECT rect, RGBQUAD colour)
 {
     return(FreeImage.DrawColourSolidRect(this.Dib, rect, colour));
 }