# C1.Win.Bitmap.ImageRect

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Bitmap_ImageRect" data-uid="C1.Win.Bitmap.ImageRect" class="text-break">ImageRect Struct
</h1>
  <div class="markdown level0 summary"><p>Represents a rectangle for clipping images.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="C1.Win.Bitmap.ImageRect.html">ImageRect</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Bitmap.html">C1.Win.Bitmap</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Bitmap.4.8.dll</h6>
  <h5 id="C1_Win_Bitmap_ImageRect_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct ImageRect : IEquatable&lt;ImageRect&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure ImageRect
    Implements IEquatable(Of ImageRect)</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect__ctor_C1_Util_DX_RectL_" data-uid="C1.Win.Bitmap.ImageRect.#ctor(C1.Util.DX.RectL)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.-ctor.html#C1_Win_Bitmap_ImageRect__ctor_C1_Util_DX_RectL_">ImageRect(RectL)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Bitmap.ImageRect.html">ImageRect</a> struct.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect__ctor_System_Drawing_Rectangle_" data-uid="C1.Win.Bitmap.ImageRect.#ctor(System.Drawing.Rectangle)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.-ctor.html#C1_Win_Bitmap_ImageRect__ctor_System_Drawing_Rectangle_">ImageRect(Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Bitmap.ImageRect.html">ImageRect</a> struct.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect__ctor_System_Int32_System_Int32_" data-uid="C1.Win.Bitmap.ImageRect.#ctor(System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.-ctor.html#C1_Win_Bitmap_ImageRect__ctor_System_Int32_System_Int32_">ImageRect(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Bitmap.ImageRect.html">ImageRect</a> struct.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect__ctor_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Win.Bitmap.ImageRect.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.-ctor.html#C1_Win_Bitmap_ImageRect__ctor_System_Int32_System_Int32_System_Int32_System_Int32_">ImageRect(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Bitmap.ImageRect.html">ImageRect</a> struct.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Empty" data-uid="C1.Win.Bitmap.ImageRect.Empty">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Empty.html">Empty</a>
        </td>
        <td class="markdown level1 summary"><p>An empty rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Height" data-uid="C1.Win.Bitmap.ImageRect.Height">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Height.html">Height</a>
        </td>
        <td class="markdown level1 summary"><p>The height of the rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Width" data-uid="C1.Win.Bitmap.ImageRect.Width">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Width.html">Width</a>
        </td>
        <td class="markdown level1 summary"><p>The width of the rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_X" data-uid="C1.Win.Bitmap.ImageRect.X">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.X.html">X</a>
        </td>
        <td class="markdown level1 summary"><p>The horizontal coordinate of the rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Y" data-uid="C1.Win.Bitmap.ImageRect.Y">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Y.html">Y</a>
        </td>
        <td class="markdown level1 summary"><p>The vertical coordinate of the rectangle.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Bottom" data-uid="C1.Win.Bitmap.ImageRect.Bottom">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Bottom.html#C1_Win_Bitmap_ImageRect_Bottom">Bottom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the y-coordinate of the bottom edge.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_HasSpace" data-uid="C1.Win.Bitmap.ImageRect.HasSpace">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.HasSpace.html#C1_Win_Bitmap_ImageRect_HasSpace">HasSpace</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if there is some space within the rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Left" data-uid="C1.Win.Bitmap.ImageRect.Left">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Left.html#C1_Win_Bitmap_ImageRect_Left">Left</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the x-coordinate of the left edge.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Right" data-uid="C1.Win.Bitmap.ImageRect.Right">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Right.html#C1_Win_Bitmap_ImageRect_Right">Right</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the x-coordinate of the right edge.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Top" data-uid="C1.Win.Bitmap.ImageRect.Top">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Top.html#C1_Win_Bitmap_ImageRect_Top">Top</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the y-coordinate of the top edge.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Contains_C1_Win_Bitmap_ImageRect_" data-uid="C1.Win.Bitmap.ImageRect.Contains(C1.Win.Bitmap.ImageRect)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Contains.html#C1_Win_Bitmap_ImageRect_Contains_C1_Win_Bitmap_ImageRect_">Contains(ImageRect)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified rectangle is fully contained within this rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Contains_System_Int32_System_Int32_" data-uid="C1.Win.Bitmap.ImageRect.Contains(System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Contains.html#C1_Win_Bitmap_ImageRect_Contains_System_Int32_System_Int32_">Contains(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified point is contained within this rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Equals_C1_Win_Bitmap_ImageRect_" data-uid="C1.Win.Bitmap.ImageRect.Equals(C1.Win.Bitmap.ImageRect)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Equals.html#C1_Win_Bitmap_ImageRect_Equals_C1_Win_Bitmap_ImageRect_">Equals(ImageRect)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether this instance and a specified object are equal.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Equals_System_Object_" data-uid="C1.Win.Bitmap.ImageRect.Equals(System.Object)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Equals.html#C1_Win_Bitmap_ImageRect_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether this instance and a specified object are equal.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_FromLTRB_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Win.Bitmap.ImageRect.FromLTRB(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.FromLTRB.html#C1_Win_Bitmap_ImageRect_FromLTRB_System_Int32_System_Int32_System_Int32_System_Int32_">FromLTRB(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="C1.Win.Bitmap.ImageRect.html">ImageRect</a> struct from (left, top, right, bottom) coordinates.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_GetHashCode" data-uid="C1.Win.Bitmap.ImageRect.GetHashCode">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.GetHashCode.html#C1_Win_Bitmap_ImageRect_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a hash code for this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Inflate_System_Int32_System_Int32_" data-uid="C1.Win.Bitmap.ImageRect.Inflate(System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Inflate.html#C1_Win_Bitmap_ImageRect_Inflate_System_Int32_System_Int32_">Inflate(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Inflates the rectangle by the specified amount.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Intersect_C1_Win_Bitmap_ImageRect_C1_Win_Bitmap_ImageRect_" data-uid="C1.Win.Bitmap.ImageRect.Intersect(C1.Win.Bitmap.ImageRect,C1.Win.Bitmap.ImageRect)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Intersect.html#C1_Win_Bitmap_ImageRect_Intersect_C1_Win_Bitmap_ImageRect_C1_Win_Bitmap_ImageRect_">Intersect(ImageRect, ImageRect)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a rectangle that represents the intersection of two rectangles.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_IntersectsWith_C1_Win_Bitmap_ImageRect_" data-uid="C1.Win.Bitmap.ImageRect.IntersectsWith(C1.Win.Bitmap.ImageRect)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.IntersectsWith.html#C1_Win_Bitmap_ImageRect_IntersectsWith_C1_Win_Bitmap_ImageRect_">IntersectsWith(ImageRect)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if this rectangle intersects with rect.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Offset_System_Int32_System_Int32_" data-uid="C1.Win.Bitmap.ImageRect.Offset(System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Offset.html#C1_Win_Bitmap_ImageRect_Offset_System_Int32_System_Int32_">Offset(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Offsets the rectangle by the specified amount.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_ToRectL" data-uid="C1.Win.Bitmap.ImageRect.ToRectL">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.ToRectL.html#C1_Win_Bitmap_ImageRect_ToRectL">ToRectL()</a>
        </td>
        <td class="markdown level1 summary"><p>Converts <a class="xref" href="C1.Win.Bitmap.ImageRect.html">ImageRect</a> to <a class="xref" href="../C1.Win.DX.4.8/C1.Util.DX.RectL.html">RectL</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_ToRectangle" data-uid="C1.Win.Bitmap.ImageRect.ToRectangle">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.ToRectangle.html#C1_Win_Bitmap_ImageRect_ToRectangle">ToRectangle()</a>
        </td>
        <td class="markdown level1 summary"><p>Converts <a class="xref" href="C1.Win.Bitmap.ImageRect.html">ImageRect</a> to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_ToString" data-uid="C1.Win.Bitmap.ImageRect.ToString">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.ToString.html#C1_Win_Bitmap_ImageRect_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a string that represents the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_Union_C1_Win_Bitmap_ImageRect_C1_Win_Bitmap_ImageRect_" data-uid="C1.Win.Bitmap.ImageRect.Union(C1.Win.Bitmap.ImageRect,C1.Win.Bitmap.ImageRect)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.Union.html#C1_Win_Bitmap_ImageRect_Union_C1_Win_Bitmap_ImageRect_C1_Win_Bitmap_ImageRect_">Union(ImageRect, ImageRect)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_op_Equality_C1_Win_Bitmap_ImageRect_C1_Win_Bitmap_ImageRect_" data-uid="C1.Win.Bitmap.ImageRect.op_Equality(C1.Win.Bitmap.ImageRect,C1.Win.Bitmap.ImageRect)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.op_Equality.html#C1_Win_Bitmap_ImageRect_op_Equality_C1_Win_Bitmap_ImageRect_C1_Win_Bitmap_ImageRect_">operator ==(ImageRect, ImageRect)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified values are equal.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_op_Explicit_C1_Util_DX_RectL__C1_Win_Bitmap_ImageRect" data-uid="C1.Win.Bitmap.ImageRect.op_Explicit(C1.Util.DX.RectL)~C1.Win.Bitmap.ImageRect">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.op_Explicit.html#C1_Win_Bitmap_ImageRect_op_Explicit_C1_Util_DX_RectL__C1_Win_Bitmap_ImageRect">explicit operator ImageRect(RectL)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="../C1.Win.DX.4.8/C1.Util.DX.RectL.html">RectL</a> to <a class="xref" href="C1.Win.Bitmap.ImageRect.html">ImageRect</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_op_Explicit_C1_Win_Bitmap_ImageRect__C1_Util_DX_RectL" data-uid="C1.Win.Bitmap.ImageRect.op_Explicit(C1.Win.Bitmap.ImageRect)~C1.Util.DX.RectL">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.op_Explicit.html#C1_Win_Bitmap_ImageRect_op_Explicit_C1_Win_Bitmap_ImageRect__C1_Util_DX_RectL">explicit operator RectL(ImageRect)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="C1.Win.Bitmap.ImageRect.html">ImageRect</a> to <a class="xref" href="../C1.Win.DX.4.8/C1.Util.DX.RectL.html">RectL</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_op_Explicit_C1_Win_Bitmap_ImageRect__System_Drawing_Rectangle" data-uid="C1.Win.Bitmap.ImageRect.op_Explicit(C1.Win.Bitmap.ImageRect)~System.Drawing.Rectangle">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.op_Explicit.html#C1_Win_Bitmap_ImageRect_op_Explicit_C1_Win_Bitmap_ImageRect__System_Drawing_Rectangle">explicit operator Rectangle(ImageRect)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="C1.Win.Bitmap.ImageRect.html">ImageRect</a> to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_op_Explicit_System_Drawing_Rectangle__C1_Win_Bitmap_ImageRect" data-uid="C1.Win.Bitmap.ImageRect.op_Explicit(System.Drawing.Rectangle)~C1.Win.Bitmap.ImageRect">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.op_Explicit.html#C1_Win_Bitmap_ImageRect_op_Explicit_System_Drawing_Rectangle__C1_Win_Bitmap_ImageRect">explicit operator ImageRect(Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> to <a class="xref" href="C1.Win.Bitmap.ImageRect.html">ImageRect</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Bitmap_ImageRect_op_Inequality_C1_Win_Bitmap_ImageRect_C1_Win_Bitmap_ImageRect_" data-uid="C1.Win.Bitmap.ImageRect.op_Inequality(C1.Win.Bitmap.ImageRect,C1.Win.Bitmap.ImageRect)">
          <a class="xref" href="C1.Win.Bitmap.ImageRect.op_Inequality.html#C1_Win_Bitmap_ImageRect_op_Inequality_C1_Win_Bitmap_ImageRect_C1_Win_Bitmap_ImageRect_">operator !=(ImageRect, ImageRect)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified values are not equal.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
