# FarPoint.Win.Picture

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Picture" data-uid="FarPoint.Win.Picture" class="text-break">Picture Class
</h1>
  <div class="markdown level0 summary"><p>Represents a picture to display.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">Picture</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="FarPoint.Win.ISerializeSupport.html">ISerializeSupport</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Win.html">FarPoint.Win</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Win.dll</h6>
  <h5 id="FarPoint_Win_Picture_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(_i))]
public class Picture : ISerializeSupport, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(_i))&gt;
Public Class Picture
    Implements ISerializeSupport, IDisposable</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="FarPoint_Win_Picture__ctor" data-uid="FarPoint.Win.Picture.#ctor">
          <a class="xref" href="FarPoint.Win.Picture.-ctor.html#FarPoint_Win_Picture__ctor">Picture()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a picture.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture__ctor_System_Drawing_Image_" data-uid="FarPoint.Win.Picture.#ctor(System.Drawing.Image)">
          <a class="xref" href="FarPoint.Win.Picture.-ctor.html#FarPoint_Win_Picture__ctor_System_Drawing_Image_">Picture(Image)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a picture with the specified image.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture__ctor_System_Drawing_Image_FarPoint_Win_RenderStyle_" data-uid="FarPoint.Win.Picture.#ctor(System.Drawing.Image,FarPoint.Win.RenderStyle)">
          <a class="xref" href="FarPoint.Win.Picture.-ctor.html#FarPoint_Win_Picture__ctor_System_Drawing_Image_FarPoint_Win_RenderStyle_">Picture(Image, RenderStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a picture with the specified image and style.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture__ctor_System_Drawing_Image_FarPoint_Win_RenderStyle_System_Drawing_Color_" data-uid="FarPoint.Win.Picture.#ctor(System.Drawing.Image,FarPoint.Win.RenderStyle,System.Drawing.Color)">
          <a class="xref" href="FarPoint.Win.Picture.-ctor.html#FarPoint_Win_Picture__ctor_System_Drawing_Image_FarPoint_Win_RenderStyle_System_Drawing_Color_">Picture(Image, RenderStyle, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a picture with the specified image, style, and transparency color.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture__ctor_System_Drawing_Image_FarPoint_Win_RenderStyle_System_Drawing_Color_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_" data-uid="FarPoint.Win.Picture.#ctor(System.Drawing.Image,FarPoint.Win.RenderStyle,System.Drawing.Color,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment)">
          <a class="xref" href="FarPoint.Win.Picture.-ctor.html#FarPoint_Win_Picture__ctor_System_Drawing_Image_FarPoint_Win_RenderStyle_System_Drawing_Color_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_">Picture(Image, RenderStyle, Color, HorizontalAlignment, VerticalAlignment)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a picture with the specified image, style, transparency color, and alignment.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture__ctor_System_Drawing_Image_FarPoint_Win_RenderStyle_System_Drawing_Color_System_Int32_" data-uid="FarPoint.Win.Picture.#ctor(System.Drawing.Image,FarPoint.Win.RenderStyle,System.Drawing.Color,System.Int32)">
          <a class="xref" href="FarPoint.Win.Picture.-ctor.html#FarPoint_Win_Picture__ctor_System_Drawing_Image_FarPoint_Win_RenderStyle_System_Drawing_Color_System_Int32_">Picture(Image, RenderStyle, Color, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a picture with the specified image, style, transparency color, and transparency tolerance.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture__ctor_System_Drawing_Image_FarPoint_Win_RenderStyle_System_Drawing_Color_System_Int32_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_" data-uid="FarPoint.Win.Picture.#ctor(System.Drawing.Image,FarPoint.Win.RenderStyle,System.Drawing.Color,System.Int32,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment)">
          <a class="xref" href="FarPoint.Win.Picture.-ctor.html#FarPoint_Win_Picture__ctor_System_Drawing_Image_FarPoint_Win_RenderStyle_System_Drawing_Color_System_Int32_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_">Picture(Image, RenderStyle, Color, int, HorizontalAlignment, VerticalAlignment)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a picture with the specified image, style, transparency color (with tolerance), and alignments of contents.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture__ctor_System_Drawing_Image_System_Drawing_Color_" data-uid="FarPoint.Win.Picture.#ctor(System.Drawing.Image,System.Drawing.Color)">
          <a class="xref" href="FarPoint.Win.Picture.-ctor.html#FarPoint_Win_Picture__ctor_System_Drawing_Image_System_Drawing_Color_">Picture(Image, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a picture with the specified image and transparency color.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture__ctor_System_Object_" data-uid="FarPoint.Win.Picture.#ctor(System.Object)">
          <a class="xref" href="FarPoint.Win.Picture.-ctor.html#FarPoint_Win_Picture__ctor_System_Object_">Picture(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a picture by copying another.</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="FarPoint_Win_Picture_AlignHorz" data-uid="FarPoint.Win.Picture.AlignHorz">
          <a class="xref" href="FarPoint.Win.Picture.AlignHorz.html#FarPoint_Win_Picture_AlignHorz">AlignHorz</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the horizontal alignment of the picture.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture_AlignVert" data-uid="FarPoint.Win.Picture.AlignVert">
          <a class="xref" href="FarPoint.Win.Picture.AlignVert.html#FarPoint_Win_Picture_AlignVert">AlignVert</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the vertical alignment of the picture.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture_Image" data-uid="FarPoint.Win.Picture.Image">
          <a class="xref" href="FarPoint.Win.Picture.Image.html#FarPoint_Win_Picture_Image">Image</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the picture to display.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture_Style" data-uid="FarPoint.Win.Picture.Style">
          <a class="xref" href="FarPoint.Win.Picture.Style.html#FarPoint_Win_Picture_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style used for rendering the picture.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture_TransparencyColor" data-uid="FarPoint.Win.Picture.TransparencyColor">
          <a class="xref" href="FarPoint.Win.Picture.TransparencyColor.html#FarPoint_Win_Picture_TransparencyColor">TransparencyColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the transparency color for rendering the picture.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture_TransparencyTolerance" data-uid="FarPoint.Win.Picture.TransparencyTolerance">
          <a class="xref" href="FarPoint.Win.Picture.TransparencyTolerance.html#FarPoint_Win_Picture_TransparencyTolerance">TransparencyTolerance</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the amount of tolerance of transparency from the color set as transparent.</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="FarPoint_Win_Picture_Deserialize_System_Xml_XmlNodeReader_" data-uid="FarPoint.Win.Picture.Deserialize(System.Xml.XmlNodeReader)">
          <a class="xref" href="FarPoint.Win.Picture.Deserialize.html#FarPoint_Win_Picture_Deserialize_System_Xml_XmlNodeReader_">Deserialize(XmlNodeReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the object from XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture_OnPictureChanged_System_EventArgs_" data-uid="FarPoint.Win.Picture.OnPictureChanged(System.EventArgs)">
          <a class="xref" href="FarPoint.Win.Picture.OnPictureChanged.html#FarPoint_Win_Picture_OnPictureChanged_System_EventArgs_">OnPictureChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="FarPoint.Win.Picture.PictureChanged.html">PictureChanged</a> event when the picture changes.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture_Paint_System_Drawing_Graphics_System_Drawing_Rectangle_" data-uid="FarPoint.Win.Picture.Paint(System.Drawing.Graphics,System.Drawing.Rectangle)">
          <a class="xref" href="FarPoint.Win.Picture.Paint.html#FarPoint_Win_Picture_Paint_System_Drawing_Graphics_System_Drawing_Rectangle_">Paint(Graphics, Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints the picture in the specified rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture_Paint_System_Drawing_Graphics_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.Picture.Paint(System.Drawing.Graphics,System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Win.Picture.Paint.html#FarPoint_Win_Picture_Paint_System_Drawing_Graphics_System_Int32_System_Int32_System_Int32_System_Int32_">Paint(Graphics, int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints the picture from the specified location.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture_Paint_System_Drawing_Graphics_System_Int32_System_Int32_System_Int32_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Picture.Paint(System.Drawing.Graphics,System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean)">
          <a class="xref" href="FarPoint.Win.Picture.Paint.html#FarPoint_Win_Picture_Paint_System_Drawing_Graphics_System_Int32_System_Int32_System_Int32_System_Int32_System_Boolean_">Paint(Graphics, int, int, int, int, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints the picture from the specified location.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Picture_Serialize_System_Xml_XmlTextWriter_" data-uid="FarPoint.Win.Picture.Serialize(System.Xml.XmlTextWriter)">
          <a class="xref" href="FarPoint.Win.Picture.Serialize.html#FarPoint_Win_Picture_Serialize_System_Xml_XmlTextWriter_">Serialize(XmlTextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the object to XML.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Picture_PictureChanged" data-uid="FarPoint.Win.Picture.PictureChanged">
          <a class="xref" href="FarPoint.Win.Picture.PictureChanged.html">PictureChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the picture changes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
