Asp.net, vb.net, C#.net Resources

Welcome to Asp.net, vb.net, C#.net Resources Sign in | Join | Help
in Search

How to align the text on a bitmap?

Last post 08-29-2006, 5:53 AM by Webdeveloper. 1 replies.
Sort Posts: Previous Next
  •  08-21-2006, 8:01 AM 411

    How to align the text on a bitmap?

    How to align the text on a bitmap?
  •  08-29-2006, 5:53 AM 911 in reply to 411

    Re: How to align the text on a bitmap?

    VB.NET


    ...
    Dim sFormat As New StringFormat()
    sFormat.Alignment = StringAlignment.Far
    ...
    g.DrawString("Syncfusion", New Font("Arial", 16, FontStyle.Italic), SystemBrushes.WindowText, New PointF(2, 2), sFormat)
    ......


    C#


    ...
    StringFormat sFormat = new StringFormat() ;
    sFormat.Alignment = StringAlignment.Far;
    ...
    g.DrawString("Syncfusion", new Font("Arial", 16, FontStyle.Italic), SystemBrushes.WindowText, new PointF(2, 2), sFormat) ;
    ......

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems