.NET/GDI +
-
GDI + 비트맵 이미지 저장 관련 예제.NET/GDI + 2008. 12. 12. 14:11
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication54 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } Bitmap image1; Bitmap image2; private void Button1_Click(System.Object sender, System.EventArgs e) { try { // Retrieve the..
-
GDI + 네이버 지식인 그림 저장하며 그리기 예제.NET/GDI + 2008. 12. 11. 22:52
C#에서 그림판을 만들때 선이 겹치면 지워지지 않게 하는 해결방법 아시는분? tacks02006.11.06 13:59 답변 2| 조회 358 마우스가 무브일때 그려지게 만들었는데 전에 그렸던선을 화이트팬으로 지우고 새선을 검정색팬으로 그렸습니다 vc++에서 레스터 오퍼레이션 있는데 c#에서는 어떤식으로 그리는거를 구현해야될지 모르겠습니다. using System; using System.Collections.Generic; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Run..
-
C# "GDI폴리곤";.NET/GDI + 2008. 11. 18. 11:59
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using System.Windows.Forms; namespace ConsoleApplication1 { class GDI04 : Form { Point[] pnt = new Point[5];// 5각형 public GDI04() { this.Text = "GDI폴리곤"; this.Size = new Size(500, 500); pnt[0] = new Point(80, 20); pnt[1] = new Point(30, 50); pnt[2] = new Point(50, 100); pnt[3] = new Point(100, 100); pnt[4] =..
-
C# GDI32 GDI plus.NET/GDI + 2008. 11. 18. 11:21
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using System.Windows.Forms; namespace EllipseExam { class GDI03 : Form { Button btnDraw = null; [System.Runtime.InteropServices.DllImportAttribute("gdi32.dll")] //[System.Runtime.InteropServices.DllImport("gdi32.dll")] private static extern bool Ellipse(IntPtr hdc,int nLeftRect, int nTopRect, int nRightRect,..
-
C# 리스트박스 개별 색깔넣기 GDI 사용.NET/GDI + 2008. 11. 18. 10:05
using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.Drawing; namespace GDIexam_02 { class GDI02 : Form { ListBox lb = null; public GDI02() { this.Text = "리스트박스 예제"; lb = new ListBox(); lb.SetBounds(100, 100, 80, 100); this.Controls.Add(lb); lb.Items.Add("사과");//0 lb.Items.Add("포도");//1 lb.Items.Add("수박");//2 lb.DrawItem += new DrawItemEvent..