[C#] Graphics 객체 사용하기
C# 2007. 12. 5. 12:30 |Graphics objGraphics = null;
objGraphics = this.CreateGraphics();
objGraphics.Clear(SystemColors.Control);
objGraphics.DrawRectangle(Pens.Blue,
picShowPicture.Left - 1, picShowPicture.Top - 1,
picShowPicture.Width + 1, picShowPicture.Height + 1);
objGraphics.Dispose();
> 사각형 테두리를 그린다.
objGraphics = this.CreateGraphics();
objGraphics.Clear(SystemColors.Control);
objGraphics.DrawRectangle(Pens.Blue,
picShowPicture.Left - 1, picShowPicture.Top - 1,
picShowPicture.Width + 1, picShowPicture.Height + 1);
objGraphics.Dispose();
> 사각형 테두리를 그린다.