<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Trazo de líneas y polígonos en C# by Bryan Axel López Barrera</title>
      <link>https://padlet.com/bogartspectrus/mfnels8611yg9si2</link>
      <description>López Barrera Bryan Axel - 5ADYEV11</description>
      <language>en-us</language>
      <pubDate>2023-05-25 01:25:01 UTC</pubDate>
      <lastBuildDate>2023-05-26 06:24:57 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet.net/icons/png/1f4bb.png</url>
      </image>
      <item>
         <title>Lápices, líneas y rectángulos</title>
         <author>bogartspectrus</author>
         <link>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2604027832</link>
         <description><![CDATA[<div>Para dibujar líneas con Visual Studio debe crear un objeto Graphics y un objeto Pen. El objeto Graphics proporciona los métodos que realizan el dibujo, mientras que el objeto Pen almacena los atributos, como el color de línea, el ancho y el estilo.<br><br></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2057636070/68830ecd3c4bd6a8d4a54b9c504b1e93/image.png" />
         <pubDate>2023-05-25 01:42:06 UTC</pubDate>
         <guid>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2604027832</guid>
      </item>
      <item>
         <title>Dibujo de una línea</title>
         <author>bogartspectrus</author>
         <link>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2604033699</link>
         <description><![CDATA[<div>Para dibujar una línea, llame al método <a href="https://learn.microsoft.com/es-es/dotnet/api/system.drawing.graphics.drawline">DrawLine</a> del objeto <a href="https://learn.microsoft.com/es-es/dotnet/api/system.drawing.graphics">Graphics</a>. El objeto <a href="https://learn.microsoft.com/es-es/dotnet/api/system.drawing.pen">Pen</a> se pasa como uno de los argumentos al método <a href="https://learn.microsoft.com/es-es/dotnet/api/system.drawing.graphics.drawline">DrawLine</a>. En el ejemplo siguiente se dibuja una línea del punto (4, 2) al punto (12, 6): (Imágen de arriba)<br><br></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2057636070/62d808f998d70f275a095ccae43d2218/image.png" />
         <pubDate>2023-05-25 01:46:50 UTC</pubDate>
         <guid>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2604033699</guid>
      </item>
      <item>
         <title>Construcción de un lápiz</title>
         <author>bogartspectrus</author>
         <link>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2604035156</link>
         <description><![CDATA[<div>Puede especificar determinados atributos al construir un objeto <a href="https://learn.microsoft.com/es-es/dotnet/api/system.drawing.pen">Pen</a>. Por ejemplo, un constructor Pen permite especificar el color y el ancho. En el ejemplo siguiente se dibuja una línea azul con un ancho de 2 de (0, 0) a (60, 30): (Imágen de arriba)<br><br></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2057636070/fe73b3375b4cae67357f9839aa394125/image.png" />
         <pubDate>2023-05-25 01:47:56 UTC</pubDate>
         <guid>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2604035156</guid>
      </item>
      <item>
         <title>Líneas discontinuas y extremos de línea</title>
         <author>bogartspectrus</author>
         <link>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2604037357</link>
         <description><![CDATA[<div>El objeto Pen también expone propiedades, como DashStyle, que se pueden usar para especificar las características de la línea. En el ejemplo siguiente se dibuja una línea discontinua de (100, 50) a (300, 80): (Imágen de arriba)<br><br>Puede usar las propiedades del objeto Pen para establecer muchos más atributos de la línea. Las propiedades StartCap y EndCap especifican el aspecto de los extremos de la línea, que pueden ser planos, cuadrados, redondeados, triangulares o una forma personalizada. La propiedad LineJoin permite especificar si las líneas conectadas están en ángulo (unidas con esquinas afiladas), biseladas, redondeadas o recortadas. En la ilustración siguiente se muestran líneas con varios estilos de extremo y de unión.<br><br></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2057636070/9fca383a59f06ec4e14f2aad4e665d19/image.png" />
         <pubDate>2023-05-25 01:49:39 UTC</pubDate>
         <guid>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2604037357</guid>
      </item>
      <item>
         <title></title>
         <author>bogartspectrus</author>
         <link>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2604039781</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2057636070/00c378107fb92c1b78c0ab54a05256f9/image.png" />
         <pubDate>2023-05-25 01:51:34 UTC</pubDate>
         <guid>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2604039781</guid>
      </item>
      <item>
         <title></title>
         <author>bogartspectrus</author>
         <link>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2604042291</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2057636070/262946221545325c8799e42d72135109/image.png" />
         <pubDate>2023-05-25 01:53:41 UTC</pubDate>
         <guid>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2604042291</guid>
      </item>
      <item>
         <title>Código Bezier</title>
         <author>casyuno</author>
         <link>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2604061696</link>
         <description><![CDATA[<div>Hola compañero, te paso un código para trazar líneas curvas, espero te funcione en algún momento en tus próximos proyectos c:<br>e.Graphics.DrawCurve(curva, points);<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Curva Bezier<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Pen bezier = new Pen(Color.Red, 4);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Point p1 = new Point(100, 100);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Point p2 = new Point(150, 50);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Point c1 = new Point(250, 150);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Point c2 = new Point(300, 100);</div>]]></description>
         <enclosure url="https://st3.depositphotos.com/1003617/14541/v/950/depositphotos_145416419-stock-illustration-curved-lines-pattern.jpg" />
         <pubDate>2023-05-25 02:07:21 UTC</pubDate>
         <guid>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2604061696</guid>
      </item>
      <item>
         <title>Trazado de Polígonos </title>
         <author>MizukiWisteria</author>
         <link>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2605284739</link>
         <description><![CDATA[<div>Para dibuja líneas, rectángulos y otras formas es necesario un <strong>sistema de coordenadas</strong>. Puede elegir entre una variedad de sistemas de coordenadas, pero el sistema de coordenadas predeterminado tiene el origen en la esquina superior izquierda con el eje x señalando a la derecha y el eje y señalando hacia abajo. La unidad de medida del sistema de coordenadas predeterminado es el<strong> píxel.<br><br></strong>Los siguientes son métodos para dibujar: <a href="https://learn.microsoft.com/es-es/dotnet/api/system.drawing.graphics.drawline">DrawLine</a>, <a href="https://learn.microsoft.com/es-es/dotnet/api/system.drawing.graphics.drawrectangle">DrawRectangle</a>, <a href="https://learn.microsoft.com/es-es/dotnet/api/system.drawing.graphics.drawellipse">DrawEllipse</a>, <a href="https://learn.microsoft.com/es-es/dotnet/api/system.drawing.graphics.drawpolygon">DrawPolygon</a>, <a href="https://learn.microsoft.com/es-es/dotnet/api/system.drawing.graphics.drawarc">DrawArc</a>, <a href="https://learn.microsoft.com/es-es/dotnet/api/system.drawing.graphics.drawcurve">DrawCurve</a> y <a href="https://learn.microsoft.com/es-es/dotnet/api/system.drawing.graphics.drawbezier">DrawBezier</a>.&nbsp;<br>A continuación comparto el método para dibujar un rectángulo:<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SolidBrush bcielo = new SolidBrush(Color.DodgerBlue);<br><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Rectangle cielo = new Rectangle(0, 0, 512, 274);<br><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.Graphics.FillRectangle(bcielo, cielo);<br><br></div><div>&nbsp;&nbsp;</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1134139569/b1bab15bf9489b77e9c88d78673683ca/Captura_de_pantalla_2023_05_25_141848.jpg" />
         <pubDate>2023-05-25 20:19:46 UTC</pubDate>
         <guid>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2605284739</guid>
      </item>
      <item>
         <title>Dibuja una elipse usando C#</title>
         <author>entresasha</author>
         <link>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2605375624</link>
         <description><![CDATA[<div>Los siguientes son los pasos para dibujar una elipse en C#.</div><ul><li>Primero, cree un objeto de la clase <a href="https://reference.aspose.com/imaging/net/aspose.imaging.imageoptions/bmpoptions/">BmpOptions</a> y configure los bits por píxel usando la propiedad <a href="https://reference.aspose.com/imaging/net/aspose.imaging.imageoptions/bmpoptions/bitsperpixel/">BitsPerPixel</a>.</li><li>Luego, asigne <a href="https://reference.aspose.com/imaging/net/aspose.imaging.sources/streamsource/">StreamSource</a> usando la propiedad <a href="https://reference.aspose.com/imaging/net/aspose.imaging/imageoptionsbase/source">Source</a>.</li><li>Cree una nueva imagen e inicialícela con el objeto BmpOptions y la altura y el ancho de la imagen.</li><li>Cree un objeto de la clase <a href="https://reference.aspose.com/imaging/net/aspose.imaging/graphics/">Graphics</a> e inicialícelo con el objeto <a href="https://reference.aspose.com/imaging/net/aspose.imaging/image/">Image</a>.</li><li>Limpia la superficie de la imagen con algo de color usando el método <a href="https://reference.aspose.com/imaging/net/aspose.imaging/graphics/clear/">Graphics.Clear()</a>.</li><li>Dibuja una elipse usando el método <a href="https://reference.aspose.com/imaging/net/aspose.imaging/graphics/drawellipse">Graphics.DrawEllipse(Pen, Rectangle)</a>.</li><li>Genere y guarde la imagen usando el método <a href="https://reference.aspose.com/imaging/net/aspose.imaging/image/save">Image.Save()</a>.</li><li><br>// Crear BmpOpciones<br>BmpOptions bmpCreateOptions = new BmpOptions();<br>bmpCreateOptions.BitsPerPixel = 32;<br><br>// Defina la propiedad de origen para la instancia de BmpOptions<br>bmpCreateOptions.Source = new StreamSource();<br><br>// Crea una instancia de Image y llama al método create pasando el<br>// objeto bmpCreateOptions<br>Image image = Image.Create(bmpCreateOptions, 500, 500);<br><br>// Crear e inicializar una instancia de la clase Graphics<br>Graphics graphic = new Graphics(image);<br><br>// Borrar la superficie de la imagen con color blanco<br>graphic.Clear(Color.White);<br><br>// Dibuje una forma de elipse punteada especificando el objeto Pluma que tiene rojo<br>// color y un rectángulo circundante<br>graphic.DrawEllipse(new Pen(Color.Red, 3), new Rectangle(60, 40, 70, 120));<br><br>// Dibuje una forma de elipse continua especificando el objeto Pen que tiene<br>// solid brush with blue color y un rectángulo circundante<br>graphic.DrawEllipse(new Pen(new SolidBrush(Color.Blue), 3),<br>&nbsp; &nbsp; &nbsp; &nbsp; new Rectangle(40, 60, 120, 70));<br><br>// Guardar todos los cambios<br>image.Save("draw_ellipse.bmp");<br><br></li></ul>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2059521859/ab64796e9c4794923540cb951f97973a/draw_ellipse.bmp" />
         <pubDate>2023-05-25 23:22:48 UTC</pubDate>
         <guid>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2605375624</guid>
      </item>
      <item>
         <title>Curvas abiertas y cerradas</title>
         <author>esmeraldapb1802</author>
         <link>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2605393796</link>
         <description><![CDATA[<div>Las curvas cerradas tienen un interior y, por lo tanto, se pueden rellenar con un pincel. La clase <em>Graphics</em> de GDI+ proporciona los métodos siguientes para rellenar formas y curvas cerradas: <em>FillRectangle, FillEllipse, FillPie, FillPolygon, FillClosedCurve, FillPath y FillRegion</em>. Cada vez que llame a uno de estos métodos, debe pasar uno de los tipos de pincel específicos (<em>SolidBrush, HatchBrush, TextureBrush, LinearGradientBrush o PathGradientBrush</em>) como argumento.</div><div><br>El método <em>FillPie</em> es un complemento del método <em>DrawArc</em>. Mientras que el método <em>DrawArc</em> dibuja una parte del contorno de una elipse, el método <em>FillPie</em> rellena una parte del interior de una elipse. En el ejemplo siguiente se dibuja un arco y se rellena la parte correspondiente del interior de la elipse.<br><br>Código:<br><br>myGraphics.FillPie(mySolidBrush, 0, 0, 140, 70, 0, 120);<br>myGraphics.DrawArc(myPen, 0, 0, 140, 70, 0, 120);</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2059535418/af597af2e4fd9bf5584b0d632734c8ab/aboutgdip02_art25.gif" />
         <pubDate>2023-05-25 23:49:50 UTC</pubDate>
         <guid>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2605393796</guid>
      </item>
      <item>
         <title>Códigos de color</title>
         <author></author>
         <link>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2605817662</link>
         <description><![CDATA[<div>Los colores siempre le darán vida a un trabajo, en Visual Studio para trazar con colores es necesario hacer uso de un código hexadecimal del color deseado o poner el color en ingles.<br><br><strong>&nbsp;Ejemplo:</strong><br><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp;<em>(Color.MediumVioletRed)</em></div><div><br>también se puede hacer:<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<em>(Color.#FFC71585)</em></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2059796532/df331a4170fd267a5f82ec9639e1e9ec/WhatsApp_Image_2023_05_26_at_12_10_51_AM.jpeg" />
         <pubDate>2023-05-26 06:24:57 UTC</pubDate>
         <guid>https://padlet.com/bogartspectrus/mfnels8611yg9si2/wish/2605817662</guid>
      </item>
   </channel>
</rss>
