본문 바로가기

Study Memos/Windows Programming

Linear Gradient (Section 52)

참고> blog.naver.com/tipsware/221136157326

 

1.Graident Brush : Direct2D에서 도형을 그릴 때 도형 내부를 Gradient 효과로 채울 수 있는 Brush
-> 매번 그릴 때마다 만들어서 사용하는 것보다 프로그램이 시작할 때 만들어놓고 계속 사용하는 것이 좋음

2. GradientStopCollection : Linear Gradient Brush 객체를 생성하기 위한 클래스
-> Gradient 를 어느 지점에서 어떻게 적용할지를 저장

3. LinearGradientBrush 생성 후에는 GradientStopCollection 제거해도 됨

반응형