System.Drawing.FastBitmap.GetBounds C# (CSharp) Метод

GetBounds() публичный Метод

public GetBounds ( ) : Rectangle
Результат Rectangle
        public Rectangle GetBounds()
        {
            return new Rectangle(0, 0, _bitmap.Width, _bitmap.Height);
        }

Usage Example

Пример #1
1
        public void Apply(FastBitmap surface, Rectangle[] roi, int startIndex, int length)
        {
            Rectangle regionBounds = Utility.GetRegionBounds (roi, startIndex, length);

            if (regionBounds != Rectangle.Intersect (surface.GetBounds (), regionBounds))
                throw new ArgumentOutOfRangeException ("roi", "Region is out of bounds");

            unsafe {
                for (int x = startIndex; x < startIndex + length; ++x)
                    ApplyRectangle (surface, roi[x]);
            }
        }
All Usage Examples Of System.Drawing.FastBitmap::GetBounds