تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
مقدمة الي تشفير الحروف الأبجدية العربية
#3
PHP كود :
Imports System

Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
MyBase.OnPaint(e)
e.Graphics.SmoothingMode SmoothingMode.AntiAlias
Dim g 
As Graphics e.Graphics
Dim pointF 
As New PointF(CSng(Me.Width) / 2FCSng(Me.Height) / 2F)
Dim num1 As Single Math.Min(pointF.XpointF.Y)
Dim num2 As Single CSng(CDbl(num1) * 65.0 100.0)
Dim num3 As Single CSng(CDbl(num1) * 55.0 100.0)
Dim num4 As Single CSng(CDbl(num1) * 45.0 100.0)
Dim _Brush As Brush CType(New LinearGradientBrush(New Point(CInt(Math.Truncate(CDbl(pointF.X) - CDbl(num2))), CInt(Math.Truncate(CDbl(pointF.Y) - CDbl(num2)))), New Point(CInt(Math.Truncate(CDbl(pointF.X) + CDbl(num2))), CInt(Math.Truncate(CDbl(pointF.Y) + CDbl(num2)))), Color.WhiteSmokeSystemColors.ControlDarkDark), Brush)
g.FillEllipse(_BrushpointF.num2pointF.num22F num22F num2)
_Brush.Dispose()
If 
Me._Value Then
Dim path 
As New GraphicsPath()
path.AddEllipse(pointF.num1pointF.num1num1 2Fnum1 2F)
Dim pathGradientBrush As New PathGradientBrush(path)
pathGradientBrush.CenterColor Color.FromArgb(150CInt(Math.Truncate(Me.OnColor.R)), CInt(Math.Truncate(Me.OnColor.G)), CInt(Math.Truncate(Me.OnColor.B)))
Dim colorArray() As Color = { Color.FromArgb(1CInt(Math.Truncate(Me.OnColor.R)), CInt(Math.Truncate(Me.OnColor.G)), CInt(Math.Truncate(Me.OnColor.B))) }
pathGradientBrush.SurroundColors colorArray
g
.FillEllipse(CType(pathGradientBrushBrush), pointF.num1pointF.num1num1 2Fnum1 2F)
path.Dispose()
pathGradientBrush.Dispose()
End If
Dim brush2 As Brush CType(New LinearGradientBrush(New Point(CInt(Math.Truncate(CDbl(pointF.X) - CDbl(num3))), CInt(Math.Truncate(CDbl(pointF.Y) - CDbl(num3)))), New Point(CInt(Math.Truncate(CDbl(pointF.X) + CDbl(num3))), CInt(Math.Truncate(CDbl(pointF.Y) + CDbl(num2)))), SystemColors.ControlDarkDarkColor.WhiteSmoke), Brush)
g.FillEllipse(brush2pointF.num3pointF.num32F num32F num3)
_Brush.Dispose()
Dim gp As New GraphicsPath()
gp.AddEllipse(pointF.num4pointF.num42F num42F num4)
If 
Me._Value Then
Dim pathGradientBrush 
As New PathGradientBrush(gp)
pathGradientBrush.CenterColor Color.WhiteSmoke
Dim colorArray
() As Color = { Me.OnColor }
pathGradientBrush.SurroundColors colorArray
pathGradientBrush
.CenterPoint = New PointF(pointF.num4 2FpointF.num4 2F)
g.FillEllipse(CType(pathGradientBrushBrush), pointF.num4pointF.num42F num42F num4)
pathGradientBrush.Dispose()
Else
Dim pathGradientBrush As New PathGradientBrush(gp)
pathGradientBrush.CenterColor Color.WhiteSmoke
Dim colorArray
() As Color = { Me.OffColor }
pathGradientBrush.SurroundColors colorArray
pathGradientBrush
.CenterPoint = New PointF(pointF.num4 2FpointF.num4 2F)
g.FillEllipse(CType(pathGradientBrushBrush), pointF.num4pointF.num42F num42F num4)
pathGradientBrush.Dispose()
End If
gp.Dispose()
End Sub 
الرد }}}
تم الشكر بواسطة:


الردود في هذا الموضوع
RE: مقدمة الي تشفير الحروف الأبجدية العربية - بواسطة Miloud - 12-10-21, 04:48 PM

المواضيع المحتمل أن تكون متشابهة .
الموضوع : الكاتب الردود : المشاهدات : آخر رد
  التعامل مع الصور Images في بيئة الدوت نت باستخدام +GDI - مقدمة RaggiTech 3 5,868 30-07-21, 05:14 PM
آخر رد: kebboud
  ترجمة النصوص من الإنجليزية الي العربية بين الواقع و الخيال silverlight 2 5,399 28-05-20, 05:05 AM
آخر رد: محمد ايمن
  [VB.NET] عمل برنامج تشفير بخوارزمية base64 alking-0999 2 5,617 31-01-19, 07:28 PM
آخر رد: khalil7547
  [مقال] تشفير الكونكشن استرنج mero5000 7 4,174 04-12-18, 12:14 PM
آخر رد: dametucorazon
  تشفير الملفات التنفيذية silverlight 2 6,354 02-10-18, 08:57 AM
آخر رد: sendbad100
  مقدمة إلي ضغط الصور ..... Zip Bitmap silverlight 0 2,392 10-05-18, 04:35 AM
آخر رد: silverlight
  مقدمة إلي إخفاء المعلومات - الجزء الأول silverlight 5 4,158 07-01-17, 10:44 PM
آخر رد: Basil Abdallah
  مقدمة إلي إخفاء المعلومات - الجزء الثاني silverlight 1 3,027 06-01-17, 11:52 AM
آخر رد: silverlight
  مقارنة الكلمات و الأسماء العربية برمجيا silverlight 4 4,023 20-12-15, 08:34 PM
آخر رد: silverlight
  [VB.NET] برنامج تشفير خوارزمية rsa مضغوط ببرنامج winrar alking-0999 2 4,679 08-07-15, 01:49 PM
آخر رد: alking-0999

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم