<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2F2D_Graphics%2FDraw_string</id>
		<title>VB.Net Tutorial/2D Graphics/Draw string - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2F2D_Graphics%2FDraw_string"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/2D_Graphics/Draw_string&amp;action=history"/>
		<updated>2026-04-05T12:59:11Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/2D_Graphics/Draw_string&amp;diff=3277&amp;oldid=prev</id>
		<title> в 16:40, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/2D_Graphics/Draw_string&amp;diff=3277&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 16:40, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/2D_Graphics/Draw_string&amp;diff=3278&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/2D_Graphics/Draw_string&amp;diff=3278&amp;oldid=prev"/>
				<updated>2010-05-26T12:54:47Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Draw string with Brush and Font settings==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
public class GDIObjectsCreateBrushFont&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint&lt;br /&gt;
        Dim canvas As Graphics = e.Graphics&lt;br /&gt;
        &lt;br /&gt;
        Dim brush1 As New SolidBrush(Color.DarkBlue)&lt;br /&gt;
        Dim font1 As New Font(&amp;quot;Arial&amp;quot;, 24, FontStyle.Bold Or FontStyle.Italic)&lt;br /&gt;
        canvas.DrawString(&amp;quot;www.vbex.ru&amp;quot;,font1, brush1, 120, 70)&lt;br /&gt;
        &lt;br /&gt;
        canvas = Nothing&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Global.Microsoft.VisualBasic.rupilerServices.DesignerGenerated()&amp;gt; _&lt;br /&gt;
Partial Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerNonUserCode()&amp;gt; _&lt;br /&gt;
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing AndAlso components IsNot Nothing Then&lt;br /&gt;
            components.Dispose()&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; _&lt;br /&gt;
    Private Sub InitializeComponent()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)&lt;br /&gt;
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(610, 328)&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Creating Graphics Objects (Color, Pen, Font, Brush)&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Print string in 3D==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
public class TextureTransform&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
public class Form1&lt;br /&gt;
  Inherits System.Windows.Forms.Form&lt;br /&gt;
  Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)&lt;br /&gt;
        Dim g As Graphics = e.Graphics&lt;br /&gt;
        Dim str As String = &amp;quot;www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru www.vbex.ru &amp;quot;&lt;br /&gt;
        g.ScaleTransform(2, 1)&lt;br /&gt;
        g.RotateTransform(45.0F, System.Drawing.Drawing2D.MatrixOrder.Prepend)&lt;br /&gt;
        g.TranslateTransform(-20, -70)&lt;br /&gt;
        g.DrawString(str, New Font(&amp;quot;Verdana&amp;quot;, 10), New SolidBrush(Color.Blue), New RectangleF(50, 20, 200, 300))&lt;br /&gt;
  End Sub&lt;br /&gt;
  Public Sub New()&lt;br /&gt;
   &lt;br /&gt;
    MyBase.New()&lt;br /&gt;
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
    Me.ClientSize = New System.Drawing.Size(292, 273)&lt;br /&gt;
    Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen&lt;br /&gt;
  End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Rotate and Transoform in Text painting==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Drawing.Text&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
public class TransformRotateTextPaint&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
public class Form1&lt;br /&gt;
  Inherits System.Windows.Forms.Form&lt;br /&gt;
  Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)&lt;br /&gt;
        Me.Font = New Font(&amp;quot;Times New Roman&amp;quot;, 20, FontStyle.Bold, GraphicsUnit.Pixel)&lt;br /&gt;
        e.Graphics.TextRenderingHint = TextRenderingHint.AntiAliasGridFit&lt;br /&gt;
        DrawArrow(e.Graphics, &amp;quot;&amp;quot;)&lt;br /&gt;
        e.Graphics.TranslateTransform(150, 50, MatrixOrder.Append)&lt;br /&gt;
        DrawArrow(e.Graphics, &amp;quot;Translate 150 horizontally and 50 vertically&amp;quot;)&lt;br /&gt;
        e.Graphics.RotateTransform(45, MatrixOrder.Append)&lt;br /&gt;
        DrawArrow(e.Graphics, &amp;quot;Rotate 45 degrees&amp;quot;)&lt;br /&gt;
        &amp;quot; Reset the transformation.&lt;br /&gt;
        e.Graphics.ResetTransform()&lt;br /&gt;
        e.Graphics.RotateTransform(45, MatrixOrder.Append)&lt;br /&gt;
        DrawArrow(e.Graphics, &amp;quot;Rotate 45 degrees after reset&amp;quot;)&lt;br /&gt;
        e.Graphics.TranslateTransform(150, 50, MatrixOrder.Append)&lt;br /&gt;
        DrawArrow(e.Graphics, &amp;quot;Translate 150 horizontally and 50 vertically after reset&amp;quot;)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot; Draw an arrow outline containing some text.&lt;br /&gt;
    Private Sub DrawArrow(ByVal gr As Graphics, ByVal txt As String)&lt;br /&gt;
        &amp;quot; Draw the text.&lt;br /&gt;
        Dim layout_rectangle As New RectangleF(10, 20, 600, 20)&lt;br /&gt;
        Dim string_format As New StringFormat&lt;br /&gt;
        string_format.LineAlignment = StringAlignment.Center&lt;br /&gt;
        string_format.Alignment = StringAlignment.Center&lt;br /&gt;
        gr.DrawString(txt, Me.Font, Brushes.Black, _&lt;br /&gt;
            layout_rectangle, string_format)&lt;br /&gt;
    End Sub&lt;br /&gt;
  Public Sub New()&lt;br /&gt;
   &lt;br /&gt;
    MyBase.New()&lt;br /&gt;
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
    Me.ClientSize = New System.Drawing.Size(292, 273)&lt;br /&gt;
    Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen&lt;br /&gt;
  End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Text Contrast==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
public class TextContrast&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New TextContrastForm)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
Public Class TextContrastForm&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;TextContrastForm&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
        Me.BackColor = System.Drawing.Color.White&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(292, 266)&lt;br /&gt;
        Me.Name = &amp;quot;TextContrastForm&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;TextContrastForm&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Sub TextContrastForm_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint&lt;br /&gt;
        Dim g As Graphics = e.Graphics&lt;br /&gt;
        &lt;br /&gt;
        Dim i As Integer&lt;br /&gt;
        Dim y As Integer&lt;br /&gt;
        For i = 0 To 12 Step 1&lt;br /&gt;
            g.TextContrast = i&lt;br /&gt;
            Dim line As String = &amp;quot;Contrast = &amp;quot; &amp;amp; i.ToString()&lt;br /&gt;
            g.DrawString(line, Me.Font, Brushes.Black, 0, y, New StringFormat())&lt;br /&gt;
            y = y + 30&lt;br /&gt;
        Next&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Text outline==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
public class StringOutLine&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Private Sub PictureBox1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint&lt;br /&gt;
        Dim outlinePath As New Drawing2D.GraphicsPath&lt;br /&gt;
        Dim useFont As Font = New Font(&amp;quot;Times New Roman&amp;quot;, 96, FontStyle.Regular)&lt;br /&gt;
        e.Graphics.TextRenderingHint = Drawing.Text.TextRenderingHint.AntiAlias&lt;br /&gt;
        e.Graphics.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias&lt;br /&gt;
        outlinePath.AddString(&amp;quot;www.vbex.ru&amp;quot;, useFont.FontFamily, FontStyle.Regular, 96, New Point(0, 0), StringFormat.GenericTypographic)&lt;br /&gt;
        useFont.Dispose()&lt;br /&gt;
        e.Graphics.FillPath(Brushes.LightGray, outlinePath)&lt;br /&gt;
        e.Graphics.TranslateTransform(-5, -5)&lt;br /&gt;
        e.Graphics.FillPath(Brushes.White, outlinePath)&lt;br /&gt;
        e.Graphics.DrawPath(Pens.Black, outlinePath)&lt;br /&gt;
        outlinePath.Dispose()&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Global.Microsoft.VisualBasic.rupilerServices.DesignerGenerated()&amp;gt; _&lt;br /&gt;
Partial Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerNonUserCode()&amp;gt; _&lt;br /&gt;
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing AndAlso components IsNot Nothing Then&lt;br /&gt;
            components.Dispose()&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; _&lt;br /&gt;
    Private Sub InitializeComponent()&lt;br /&gt;
        Me.PictureBox1 = New System.Windows.Forms.PictureBox&lt;br /&gt;
        CType(Me.PictureBox1, System.ruponentModel.ISupportInitialize).BeginInit()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;PictureBox1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.PictureBox1.BackColor = System.Drawing.Color.White&lt;br /&gt;
        Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle&lt;br /&gt;
        Me.PictureBox1.Location = New System.Drawing.Point(8, 8)&lt;br /&gt;
        Me.PictureBox1.Name = &amp;quot;PictureBox1&amp;quot;&lt;br /&gt;
        Me.PictureBox1.Size = New System.Drawing.Size(780, 152)&lt;br /&gt;
        Me.PictureBox1.TabIndex = 0&lt;br /&gt;
        Me.PictureBox1.TabStop = False&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)&lt;br /&gt;
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(800, 166)&lt;br /&gt;
        Me.Controls.Add(Me.PictureBox1)&lt;br /&gt;
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle&lt;br /&gt;
        Me.MaximizeBox = False&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Outline Text&amp;quot;&lt;br /&gt;
        CType(Me.PictureBox1, System.ruponentModel.ISupportInitialize).EndInit()&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Text Shadow==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
public class TextShadow&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New ShadowFontsForm)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
Public Class ShadowFontsForm&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;ShadowFontsForm&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(46, 109)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(800, 266)&lt;br /&gt;
        Me.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 72.0!)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Function GetStringPath(ByVal s As String, ByVal dpi As Single, ByVal rect As RectangleF, ByVal font As Font, ByVal format As StringFormat) As GraphicsPath&lt;br /&gt;
        Dim path As GraphicsPath = New GraphicsPath()&lt;br /&gt;
        Dim emSize As Single = dpi * font.SizeInPoints / 72&lt;br /&gt;
        path.AddString(s, font.FontFamily, CInt(font.Style), emSize, rect, format)&lt;br /&gt;
        Return path&lt;br /&gt;
    End Function&lt;br /&gt;
&lt;br /&gt;
    Private Sub ShadowFontsForm_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint&lt;br /&gt;
        Dim g As Graphics = e.Graphics&lt;br /&gt;
        Dim s As String = &amp;quot;www.vbex.ru&amp;quot;&lt;br /&gt;
        &lt;br /&gt;
        Dim size As SizeF = New SizeF(Me.ClientRectangle.Width - 4, Me.ClientRectangle.Height - 4)&lt;br /&gt;
        &lt;br /&gt;
        Dim rect As RectangleF = New RectangleF(0, 0, size.Width, size.Height)&lt;br /&gt;
        Dim pathShadow As GraphicsPath = GetStringPath(s, g.DpiY, New RectangleF(4, 4, size.Width, size.Height), Me.Font, StringFormat.GenericTypographic)&lt;br /&gt;
        Dim path As GraphicsPath = GetStringPath(s, g.DpiY, rect, Me.Font, StringFormat.GenericTypographic)&lt;br /&gt;
        g.FillPath(Brushes.Black, pathShadow)&lt;br /&gt;
        g.FillPath(Brushes.Red, path)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Transform Text==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Math&lt;br /&gt;
public class TransformedText&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
public class Form1&lt;br /&gt;
  Inherits System.Windows.Forms.Form&lt;br /&gt;
  Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)&lt;br /&gt;
        Dim txt As String = &amp;quot;The quick brown fox jumps over the lazy dog.&amp;quot;&lt;br /&gt;
        Dim the_font As New Font(&amp;quot;Times New Roman&amp;quot;, 30, FontStyle.Bold, GraphicsUnit.Pixel)&lt;br /&gt;
        Dim layout_rect As New RectangleF( 10, 10, 200, 200)&lt;br /&gt;
        Dim string_format As New StringFormat&lt;br /&gt;
        string_format.Alignment = StringAlignment.Center&lt;br /&gt;
        string_format.LineAlignment = StringAlignment.Center&lt;br /&gt;
        e.Graphics.TranslateTransform(-100, -100, MatrixOrder.Append)&lt;br /&gt;
        e.Graphics.RotateTransform(60, MatrixOrder.Append)&lt;br /&gt;
        e.Graphics.TranslateTransform(100,100, MatrixOrder.Append)&lt;br /&gt;
        e.Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit&lt;br /&gt;
        e.Graphics.DrawString(txt, the_font, Brushes.Black, layout_rect, string_format)&lt;br /&gt;
        e.Graphics.DrawRectangle(Pens.Black, Rectangle.Round(layout_rect))&lt;br /&gt;
  End Sub&lt;br /&gt;
  Public Sub New()&lt;br /&gt;
   &lt;br /&gt;
    MyBase.New()&lt;br /&gt;
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
    Me.ClientSize = New System.Drawing.Size(292, 273)&lt;br /&gt;
    Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen&lt;br /&gt;
  End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Transparent string==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
public class AlphaBlending&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
public class Form1&lt;br /&gt;
  Inherits System.Windows.Forms.Form&lt;br /&gt;
  Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)&lt;br /&gt;
        Dim g As Graphics = Me.CreateGraphics()&lt;br /&gt;
        g.Clear(Me.BackColor)&lt;br /&gt;
        Dim curImage As Image = Image.FromFile(&amp;quot;yourfile.jpg&amp;quot;)&lt;br /&gt;
        g.DrawImage(curImage, 0, 0, curImage.Width, curImage.Height) &amp;quot;&lt;br /&gt;
        Dim opqPen As New Pen(Color.FromArgb(255, 0, 255, 0), 10)&lt;br /&gt;
        Dim transPen As New Pen(Color.FromArgb(128, 0, 255, 0), 10)&lt;br /&gt;
        Dim totTransPen As New Pen(Color.FromArgb(40, 0, 255, 0), 10)&lt;br /&gt;
        g.DrawLine(opqPen, 10, 10, 200, 10)&lt;br /&gt;
        g.DrawLine(transPen, 10, 30, 200, 30)&lt;br /&gt;
        g.DrawLine(totTransPen, 10, 50, 200, 50)&lt;br /&gt;
        Dim semiTransBrush As New SolidBrush(Color.FromArgb(90, 255, 255, 0))&lt;br /&gt;
        g.DrawString(&amp;quot;Photo &amp;quot; + ControlChars.Lf + &amp;quot;Date: 04/09/2001&amp;quot;, New Font(&amp;quot;Verdana&amp;quot;, 14), semiTransBrush, New RectangleF(20, 100, 300, 100))&lt;br /&gt;
        &amp;quot; Dispose&lt;br /&gt;
        g.Dispose()&lt;br /&gt;
&lt;br /&gt;
  End Sub&lt;br /&gt;
  Public Sub New()&lt;br /&gt;
   &lt;br /&gt;
    MyBase.New()&lt;br /&gt;
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
    Me.ClientSize = New System.Drawing.Size(292, 273)&lt;br /&gt;
    Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen&lt;br /&gt;
  End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Use LinearGradientBrush to draw string==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
public class ColorBlending&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
public class Form1&lt;br /&gt;
  Inherits System.Windows.Forms.Form&lt;br /&gt;
  Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)&lt;br /&gt;
        Dim g As Graphics = Me.CreateGraphics()&lt;br /&gt;
        g.Clear(Me.BackColor)&lt;br /&gt;
        Dim rgBrush As New LinearGradientBrush(New RectangleF(20, 20, 100, 100), Color.Red, Color.Green, LinearGradientMode.Horizontal)&lt;br /&gt;
        Dim yrBrush As New LinearGradientBrush(New RectangleF(140, 20, 150, 300), Color.Yellow, Color.Red, LinearGradientMode.ForwardDiagonal)&lt;br /&gt;
        Dim rbBrush As New LinearGradientBrush(New RectangleF(10, 10, 50, 50), Color.Red, Color.Blue, LinearGradientMode.ForwardDiagonal)&lt;br /&gt;
        g.FillRectangle(rgBrush, 20, 20, 100, 100)&lt;br /&gt;
        g.FillEllipse(yrBrush, 140, 20, 200, 200)&lt;br /&gt;
        g.DrawString(&amp;quot;Color Blending&amp;quot;, New Font(&amp;quot;Tahoma&amp;quot;, 30), rbBrush, New RectangleF(100, 240, 300, 300))&lt;br /&gt;
&lt;br /&gt;
        &amp;quot; Dispose&lt;br /&gt;
        g.Dispose()&lt;br /&gt;
  End Sub&lt;br /&gt;
  Public Sub New()&lt;br /&gt;
   &lt;br /&gt;
    MyBase.New()&lt;br /&gt;
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
    Me.ClientSize = New System.Drawing.Size(292, 273)&lt;br /&gt;
    Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen&lt;br /&gt;
  End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>