목차
[Painter]
[Canvas]
[obj]
[Properties]
Painter.csproj
Program.cs
UserPainter.cs
UserPainter.Designer.cs
UserPainter.resx
Painter.sln
Painter.suo
265KB
[Canvas]
[obj]
[Properties]
Painter.csproj
Program.cs
UserPainter.cs
UserPainter.Designer.cs
UserPainter.resx
Painter.sln
Painter.suo
265KB
본문내용
Canvas.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections;
using System.Drawing.Drawing2D;
namespace CanvasNameSpace
{
///
/// 그리기 사용자 컨트롤
///
public partial class Canvas : UserControl
{
#region 맴버변수
///
/// 마우스 드래그 시작, 끝
///
private Point DragStartPosition, DragEndPosition;
///
/// 곡선 그리기 중간점 1, 2
///
private Stack RoundLinePoint = new Stack( );
///
/// 그리기 기능 열거체
/// ( None, Pencil, Brush, Eraser, Fill, Line, RoundLine, Rectangle, Ellipse )
///
public enum TypeDraw { None = 0, Pencil, Brush, Eraser, Fill, Line, RoundLine, RectangleLine, Rectangle, Ellipse, FillRectangle, FillEllipse };
///
///
///
public enum TypeBrush { SolidBrush = 0, HatchBrush, TextureBrush };
///
/// 그리기 펜
///
private Pen CanvasPen;
///
/// 채우기 브러쉬
///
private Brush CanvasBrush;
///
/// 단일 채우기 브러시
///
private SolidBrush CanvasSolidBrush;
///
/// 해치 브러시
///
private HatchBrush CanvasHatchBrush;
///
/// 이미지 브러시
///
private TextureBrush CanvasTextureBrush;
///
/// 그려진 도형을 갖는 스텍
///
private Queue Shapes = new Queue( );
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections;
using System.Drawing.Drawing2D;
namespace CanvasNameSpace
{
///
/// 그리기 사용자 컨트롤
///
public partial class Canvas : UserControl
{
#region 맴버변수
///
/// 마우스 드래그 시작, 끝
///
private Point DragStartPosition, DragEndPosition;
///
/// 곡선 그리기 중간점 1, 2
///
private Stack
///
/// 그리기 기능 열거체
/// ( None, Pencil, Brush, Eraser, Fill, Line, RoundLine, Rectangle, Ellipse )
///
public enum TypeDraw { None = 0, Pencil, Brush, Eraser, Fill, Line, RoundLine, RectangleLine, Rectangle, Ellipse, FillRectangle, FillEllipse };
///
///
///
public enum TypeBrush { SolidBrush = 0, HatchBrush, TextureBrush };
///
/// 그리기 펜
///
private Pen CanvasPen;
///
/// 채우기 브러쉬
///
private Brush CanvasBrush;
///
/// 단일 채우기 브러시
///
private SolidBrush CanvasSolidBrush;
///
/// 해치 브러시
///
private HatchBrush CanvasHatchBrush;
///
/// 이미지 브러시
///
private TextureBrush CanvasTextureBrush;
///
/// 그려진 도형을 갖는 스텍
///
private Queue
소개글