.NETGURU
System.Drawing.Pen Class
Information   Base Types   Related Resources

Defines an object used to draw lines and curves. This class cannot be inherited.

  • Namespace: System.Drawing
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: System.Drawing.dll

  • System.MarshalByRefObject
  • View this type on MSDN
  • View this type on WinFX 247
    Articles (22)Discussions (230)MembersRotorChanges
    Articles

    Page: 1
    2D Poligon Drawer-Animator
    The Code Project
    Draw poligons, manipulate them, and animate them
    A Docking Control That Can Be Dragged And Resized by the User
    The Code Project
    One of the first features of C# that took my interest was the ability to Dock a Control onto the edge of a Form. Now I could attach a Control (or more likely a composite control by deriving from UserControl) onto a Form edge and quickly construct a useful looking application. But there is one crucial factor missing from this scenario. The user has no discretion over the size or positioning of this docked control. I want the user to be able to drag the control to a different edge and be able to resize the control so that they can customise the application area to suit their own preferences.
    Animate with Pocket PC
    C# Corner
    This article discusses programming for a Pocket PC in general complete with a code sample.
    ASP.NET Naughts and Crosses
    C# Corner
    This article demonstrates the basic techniques used to build "ASP.net Noughts & Crosses" (tic tac toe to our American friends). The game uses the native imaging and drawing features of the .net Framework to dynamically generate a JPEG image which displays the game board to the user. Players can take turns to click on the area of the image where they wish to make a move, their move is then submitted to the web server where, if legal, it is drawn onto the board. The application consists of two aspx web pages which each have an associated code behind page.
    Creating a professional looking GDI+ drawn custom control
    The Code Project
    Shows how to create a custom scrolling label control with GDI+ and proper double buffering
    Developing A C# Vector Drawing Application - Part 2
    C#Today
    This is the second part of a series where we build a vector based drawing application. In Part 1, Budi Kurniawan outlined the specification for the application and discussed some techniques for working with forms with the .NET Framework Base Class Library. In this part, we will continue with our development, first by discussing the various shapes for our drawing application and then writing event handling for some of the controls.
    Developing A Vector Based C# Drawing Application - Part 3
    C#Today
    In the first part of this series, Budi Kurniawan discussed the specification for a vector based C# drawing application. In Part 2, we looked at the Shape abstract class and the seven classes that inherit it. We also examined how an event handler works in a Windows application and we briefly discussed the System.Collections namespace. In this final part of the project, we will complete the development by discussing the DrawingArea custom control, the Color and Pen classes from the System.Drawing namespace, and object serialization - which is used to persist our drawing to a file, to be restored at a later stage.
    Dockable Control In C#
    C# Help
    edge and quickly construct a useful looking application. But there is one crucial factor missing from this scenario. The user has no discretion over the size or positioning of this docked control. I want the user to be able to drag the control to a different edge and be able to resize the control so that they can customise the application area to suit their own preferences.
    Docking Control
    C# Corner
    One of the first features of C# that took my interest was the ability to Dock a Control onto the edge of a Form. Now I could attach a Control (or more likely a composite control by deriving from UserControl) onto a Form edge and quickly construct a useful looking application. But there is one crucial factor missing from this scenario. The user has no discretion over the size or positioning of this docked control. I want the user to be able to drag the control to a different edge and be able to resize the control so that they can customise the application area to suit their own preferences.
    Drawing B-Spline Curves
    C# Corner
    The attached source code project draws spline curves between two points. Its a cubic spline fitting means program start drawing curve after four clicks.
    GDI+ Pens and Fonts
    C# Corner
    Graphics Programming in C#
    C# Corner
    Like Java, C# provides us with a rich set of classes, methods and events for developing applications with graphical capabilities. Since there is not much theory involved, we can straight away jump to an interesting example (Listing - 1), which prints "Welcome to C#" on a form.
    Header-only GroupBox
    The Code Project
    This is a simple example of a control derived from a Windows.Forms.GroupBox class, to provide the (now fairly standard) 'boxless' separator, of which there are countless MFC examples out there.
    How to set the color and the font of the StatusBarPanel object by using Visual C++ .NET
    Microsoft Support
    (816182) - This step-by-step article discusses how to programmatically set the color and the font of the StatusBarPanel object by using Microsoft Visual C++ .NET. The StatusBar control includes a Panels property that is a collection of StatusBarPanel objects....
    HOW TO: Use GDI+ Regions on Forms to Create Customized Shapes
    http://www.kbalertz.com/
    (818444) - This step-by-step article describes how to use GDI+ regions to create forms that have customized shapes such as lines, polygons, and curves. back to the top What Is GDI+Region? The Microsoft Windows GDI+Region class permits you to define a custom...
    HOW TO: Use GDI+ Regions on Forms to Create Customized Shapes
    Microsoft Support
    (818444) - This step-by-step article describes how to use GDI+ regions to create forms that have customized shapes such as lines, polygons, and curves. back to the top What Is GDI+Region? The Microsoft Windows GDI+Region class permits you to define a custom...
    Introduction to GDI+
    GotDotNet
    GotDotNet's introduction to GDI+. Extract: "The common language runtime takes advantage of an advanced version of the Windows graphics device interface (GDI) called GDI+. GDI+ is designed to provide high performance and ease of use. It supports 2-D graphics, typography, and imaging. "
    Mandelbrot set in MSIL
    The Code Project
    To really be able to program .Net, a good programmer will find themselves using ILDASM, the MSIL disassembler, on a regular basis. This necessitates an ability to, at a minimum, be competent at reading MSIL. Unfortunately, the best way to learn to read MSIL is to spend some time writing it! Thus, I set about thinking of something I could write, which would not be too large, but would cover enough of the concepts to give me an ability to read MSIL.
    Owner Draw Combo Box
    C# Help
    In the case where visual part of the control needs to be handled from your program, you can achieve this by using the OwnerDraw property of the control.
    OwnerDraw Menu Items in C#
    C# Help
    Windows applications, which focuses mainly on its GUI aspects , can make use of the ownerdraw properties of the various forms components. Once such component that allows us to define our own drawing and painting of items is the Menu component of Windows Forms.
    TreeView Rearrange
    The Code Project
    How to do a TreeView Rearrange
    Windows Forms Charting - Drawing Charts
    C#Today
    GDI+ is the latest version of Windows Graphic Device Interface, which is the part of Windows that abstracts commands like draw a window, draw a line, etc. into commands that our video driver can understand in order to display images on our computers screen. Weve already seen some of the advanced GDI+ features available to us in Dot Net Guruhew Reynolds' 'Irregular Shaped Forms and Other Cool GDI+ Features' article. In this article Dot Net Guru looks at some of the more basic features and builds a simple user control that can draw a 3D bar chart. In Part 2, we continue the development of the chart, making it user-interactive.
    Ad


    Need Dot Net Interview Questions?
    Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
    .Net Projects
    Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
    Free .net Help
    Commission ExamGuru, Inc. and his team for your next bespoke software project
    FogBUGZ
    The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
    Awesome Tools
    If you don't know about these, you're missing out... IT Certification Questions
    IT Interview Questions
    Free Oracle 10g Training
    MCSE Boortcamp
    Cisco Study Guides
    Cheap Study Guides
    Exact Questions
    Dot Net Interview Questions
    Oracle OCP
    Cheap Travel
    Designer Perfumes - Wholesale Prices
    Free Programming Tutorials
     
    ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
     Copyright © ExamGuru, Inc. 2001-2006
    Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification