안녕하세요 저는이 코드를 사용하여 양식 위에 투명 사각형을 중첩시켜야합니다.양식 위로 투명 사각형 만들기
e.Graphics.FillRectangle(color.fromargb(127.5,255,255,255), New Rectangle(0, 0, 100, 100))
어떤 도움이 좋을 것 : 프로그램은 내가 "E"이/집합으로 정의되어야 하는지를 모르겠입니다!
데이비드
갱신
' Create solid brush.
Dim blueBrush As New SolidBrush(Color.Blue)
' Create location and size of rectangle.
Dim x As Single = 0.0F
Dim y As Single = 0.0F
Dim width As Single = 200.0F
Dim height As Single = 200.0F
' Fill rectangle to screen.
e.Graphics.FillRectangle(blueBrush, x, y, width, height)
코드는 C#을 것 같다. VB.NET으로 태그를 추가했습니다. 또한 이것은 directX와는 아무런 관련이 없으며 Graphix 클래스와 관련이 있습니다. – Kris
OP를 새 코드로 업데이트했습니다. – StealthRT
http://social.msdn.microsoft.com/forums/en-US/winforms/thread/3087655c-bd50-4408-9c55-dd179e442675/ –