1 / 18

윈폼에 스킨입히기

2012.04.06. 윈폼에 스킨입히기. 특이한 모양을 갖는 윈도우 화면 만들기. Form 클래스의 Region 속성을 변경해 만듬 GraphicsPath 개체로 Region 생성 Form 클래스의 Region 맴버에 대입. 타원 모양의 윈폼. GraphicsPath.AddEllipse 메소드 사용 . 타원 모양의 윈폼. 2012.04.06. 움직이게 하기. 마우스 이벤트 추가 . MouseDown 이벤트 추가 . MouseMove 이벤트 추가 . 마우스 이벤트 추가 .

leanna
Download Presentation

윈폼에 스킨입히기

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 2012.04.06 윈폼에스킨입히기

  2. 특이한모양을 갖는 윈도우 화면 만들기 • Form 클래스의 Region 속성을 변경해 만듬 • GraphicsPath개체로 Region 생성 • Form 클래스의 Region 맴버에 대입

  3. 타원 모양의 윈폼 • GraphicsPath.AddEllipse메소드 사용

  4. 타원 모양의 윈폼

  5. 2012.04.06 움직이게 하기

  6. 마우스 이벤트 추가 MouseDown이벤트 추가 MouseMove이벤트 추가

  7. 마우스 이벤트 추가 • Mouse Down 이벤트 • Mouse Move 이벤트

  8. 2012.04.06 다각형 만들기

  9. 다각형 모양의 윈폼 • GraphicsPath.AddPolygon메소드 사용

  10. 다각형 모양의 윈폼

  11. 2012.04.06 이미지 스킨 씌우기

  12. 스킨 프로그램 만들기 • 만들기 순서 • WinForm의 설정 바꾸기 • 타이틀바 없애기 • 원하는 스킨 이미지 추가하기 • 스킨 이미지를 리소스에 추가 • 폼의 배경색을 투명하게 하기 • 배경색을 특정 색상으로 바꿈 • 특정 배경 색상을 날림 • 마우스 이벤트 추가하기 • 마우스에 따라 폼이 움직이도록 함

  13. 폼 속성 설정

  14. 리소스 추가 • 배경으로 사용할 이미지 만들기 • 사용할 이미지 선택 • 리소스로 추가

  15. 배경색 투명처리 TransparencyKey : 폼에 그릴 때 투명하게 나타날 색

  16. 스킨 이미지 추가 • 배경에 이미지 그리기

  17. 2012.04.06 PNG 스킨 씌우기

  18. 스킨 이미지 추가 • 첨부파일 참조

More Related