本文整理匯總了VB.NET中System.Drawing.Size.Implicit操作符的典型用法代碼示例。如果您正苦於以下問題:VB.NET Size.Implicit操作符的具體用法?VB.NET Size.Implicit怎麽用?VB.NET Size.Implicit使用的例子?那麽, 這裏精選的操作符代碼示例或許可以為您提供幫助。
在下文中一共展示了Size.Implicit操作符的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: ShowPropertiesOfSlateBlue
Private Sub ShowPropertiesOfSlateBlue(ByVal e As PaintEventArgs)
Dim slateBlue As Color = Color.FromName("SlateBlue")
Dim g As Byte = slateBlue.G
Dim b As Byte = slateBlue.B
Dim r As Byte = slateBlue.R
Dim a As Byte = slateBlue.A
Dim text As String = _
String.Format("Slate Blue has these ARGB values: Alpha:{0}, " _
& "red:{1}, green: {2}, blue {3}", New Object() {a, r, g, b})
e.Graphics.DrawString(text, New Font(Me.Font, FontStyle.Italic), _
New SolidBrush(slateBlue), _
New RectangleF(New PointF(0.0F, 0.0F), _
Size.op_Implicit(Me.Size)))
End Sub