Asp.net, vb.net, C#.net Resources
Welcome to Asp.net, vb.net, C#.net Resources
Sign in
|
Join
|
Help
in
GDI+ (forum)
FAQs (group)
(Entire Site)
Search
Home
Blogs
Forums
Downloads
Asp.net, vb.net, C#.net Resour...
»
FAQs
»
asp.net Faqs
»
GDI+
»
Re: How to align the text on a bitmap?
How to align the text on a bitmap?
Last post 08-29-2006, 5:53 AM by
Webdeveloper
. 1 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
08-21-2006, 8:01 AM
411
Webdeveloper
Joined on 08-19-2006
Posts 1,589
How to align the text on a bitmap?
Reply
Quote
How to align the text on a bitmap?
Report abuse
08-29-2006, 5:53 AM
911
in reply to
411
Webdeveloper
Joined on 08-19-2006
Posts 1,589
Re: How to align the text on a bitmap?
Reply
Quote
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) ;
......
Report abuse
Powered by
Megasolutions ltd