📄 linejoin.aspx
字号:
<%@ Page ContentType="image/gif" %>
<%@ Import namespace="System.Drawing" %>
<%@ Import namespace="System.Drawing.Imaging" %>
<%@ Import namespace="System.Drawing.Drawing2D" %>
<Script Runat="Server">
Sub Page_Load
Dim objBitmap As Bitmap
Dim objGraphics As Graphics
Dim objPen As Pen
' Create Bitmap
objBitmap = New Bitmap( 400, 200 )
' Create Graphics
objGraphics = Graphics.FromImage( objBitmap )
' Create Custom Pen
objPen = New Pen( Color.White )
objPen.Width = 10
' Draw Bevel LineJoin
objPen.LineJoin = LineJoin.Bevel
objGraphics.DrawRectangle( objPen, 10, 20, 350, 40 )
' Draw Miter LineJoin
objPen.LineJoin = LineJoin.Miter
objGraphics.DrawRectangle( objPen, 10, 80, 350, 40 )
' Draw Bevel LineJoin
objPen.LineJoin = LineJoin.Round
objGraphics.DrawRectangle( objPen, 10, 140, 350, 40 )
' Display Bitmap
objBitmap.Save( Response.OutputStream, ImageFormat.Gif )
End Sub
</Script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -