/// <summary>
        ///	IntersectsWith Method
        /// </summary>
        ///
        /// <remarks>
        ///	Checks if a RectangleF_ intersects with this one.
        /// </remarks>

        public bool IntersectsWith(RectangleF_ rect)
        {
            return(!((Left >= rect.Right) || (Right <= rect.Left) ||
                     (Top >= rect.Bottom) || (Bottom <= rect.Top)));
        }
 private bool IntersectsWithInclusive(RectangleF_ r)
 {
     return(!((Left > r.Right) || (Right < r.Left) ||
              (Top > r.Bottom) || (Bottom < r.Top)));
 }
        /// <summary>
        ///	Contains Method
        /// </summary>
        ///
        /// <remarks>
        ///	Checks if a RectangleF_ lies entirely within this
        ///	RectangleF.
        /// </remarks>

        public bool Contains(RectangleF_ rect)
        {
            return(X <= rect.X && Right >= rect.Right && Y <= rect.Y && Bottom >= rect.Bottom);
        }
        /// <summary>
        ///	Intersect Method
        /// </summary>
        ///
        /// <remarks>
        ///	Replaces the RectangleF_ with the intersection of itself
        ///	and another RectangleF.
        /// </remarks>

        public void Intersect(RectangleF_ rect)
        {
            this = RectangleF_.Intersect(this, rect);
        }
Beispiel #5
0
        public Region(RectangleF_ rect)
        {
            Status status = GDIPlus.GdipCreateRegionRect(ref rect, out nativeRegion);

            GDIPlus.CheckStatus(status);
        }
Beispiel #6
0
        public void Xor(RectangleF_ rect)
        {
            Status status = GDIPlus.GdipCombineRegionRect(nativeRegion, ref rect, CombineMode.Xor);

            GDIPlus.CheckStatus(status);
        }
Beispiel #7
0
 public TextureBrush(Image image, RectangleF_ dstRect) :
     this(image, WrapMode.Tile, dstRect)
 {
 }