コード例 #1
0
        public bool DrawSolidRectangle(Point location, uint width, uint height, double val)
        {
            Size    size    = new Size((int)width, (int)height);
            FIARECT fiaRect = new FIARECT(location, size);

            return(FreeImage.DrawSolidRectangle(this.Dib, fiaRect, val));
        }
コード例 #2
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)));
            }
        }
コード例 #3
0
        public bool DrawSolidRectangle(Point location, Size size, double val)
        {
            FIARECT fiaRect = new FIARECT(location, size);

            return(FreeImage.DrawSolidRectangle(this.Dib, fiaRect, val));
        }
コード例 #4
0
        public bool DrawSolidRectangle(Rectangle rect, double val)
        {
            FIARECT fiaRect = new FIARECT(rect.Left, rect.Top, rect.Right, rect.Bottom);

            return(FreeImage.DrawSolidRectangle(this.Dib, fiaRect, val));
        }
コード例 #5
0
 public bool DrawSolidRectangle(FIARECT rect, double val)
 {
     return(FreeImage.DrawSolidRectangle(this.Dib, rect, val));
 }