Click here to Skip to main content
15,915,160 members
Home / Discussions / C#
   

C#

 
GeneralRe: The title of a control Pin
nike_arh4-May-09 10:26
nike_arh4-May-09 10:26 
GeneralRe: The title of a control Pin
Pete O'Hanlon4-May-09 10:32
mvePete O'Hanlon4-May-09 10:32 
GeneralRe: The title of a control Pin
MidwestLimey4-May-09 10:43
professionalMidwestLimey4-May-09 10:43 
GeneralRe: The title of a control Pin
Pete O'Hanlon4-May-09 10:46
mvePete O'Hanlon4-May-09 10:46 
GeneralRe: The title of a control Pin
Dave Kreskowiak4-May-09 17:28
mveDave Kreskowiak4-May-09 17:28 
GeneralRe: The title of a control Pin
Dan Neely4-May-09 10:10
Dan Neely4-May-09 10:10 
AnswerRe: The title of a control Pin
Dave Kreskowiak4-May-09 17:30
mveDave Kreskowiak4-May-09 17:30 
QuestionI have a float in a binary file ( 0x00, 0x00, 0x06, 0x8B ) (1675), on a Windows Machine, How do I read it in from a binary file in c#? Pin
Greg Mort4-May-09 7:25
Greg Mort4-May-09 7:25 
AnswerRe: I have a float in a binary file ( 0x00, 0x00, 0x06, 0x8B ) (1675), on a Windows Machine, How do I read it in from a binary file in c#? Pin
Luc Pattyn4-May-09 7:36
sitebuilderLuc Pattyn4-May-09 7:36 
AnswerRe: I have a float in a binary file ( 0x00, 0x00, 0x06, 0x8B ) (1675), on a Windows Machine, How do I read it in from a binary file in c#? Pin
Luc Pattyn4-May-09 8:35
sitebuilderLuc Pattyn4-May-09 8:35 
AnswerRe: I have a float in a binary file ( 0x00, 0x00, 0x06, 0x8B ) (1675), on a Windows Machine, How do I read it in from a binary file in c#? Pin
Greg Mort4-May-09 8:36
Greg Mort4-May-09 8:36 
AnswerRe: I have a float in a binary file ( 0x00, 0x00, 0x06, 0x8B ) (1675), on a Windows Machine, How do I read it in from a binary file in c#? Pin
JossGP4-May-09 8:37
JossGP4-May-09 8:37 
AnswerRe: I have a float in a binary file ( 0x00, 0x00, 0x06, 0x8B ) (1675), on a Windows Machine, How do I read it in from a binary file in c#? Pin
dybs4-May-09 15:40
dybs4-May-09 15:40 
Questionprint page with colored text in monochrome printer Pin
JossGP4-May-09 7:18
JossGP4-May-09 7:18 
AnswerRe: print page with colored text in monochrome printer Pin
Henry Minute4-May-09 8:59
Henry Minute4-May-09 8:59 
GeneralRe: print page with colored text in monochrome printer Pin
JossGP4-May-09 9:29
JossGP4-May-09 9:29 
GeneralRe: print page with colored text in monochrome printer Pin
Henry Minute4-May-09 10:00
Henry Minute4-May-09 10:00 
GeneralRe: print page with colored text in monochrome printer Pin
JossGP4-May-09 10:16
JossGP4-May-09 10:16 
QuestionProblem rotating AND centring text on a bitmap Pin
Peter Trevor4-May-09 7:05
Peter Trevor4-May-09 7:05 
AnswerRe: Problem rotating AND centring text on a bitmap Pin
Luc Pattyn4-May-09 7:47
sitebuilderLuc Pattyn4-May-09 7:47 
Hi,

this is my view on this:
1. first attempt to paint the text without rotation; the text height can be measured using Graphics.MeasureString; when given the available width it will optionally do word wrapping, and anyway it will calculate the effective width and necessary height. So you know the distance from topleft to center now.
2. you can ask a Graphics to do all transformations for you; first order a translation to the point where your text should be centered; then order a rotation; now draw the string with Graphics.DrawString at location (0,0). That should do it.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


GeneralRe: Problem rotating AND centring text on a bitmap Pin
Peter Trevor4-May-09 10:11
Peter Trevor4-May-09 10:11 
GeneralRe: Problem rotating AND centring text on a bitmap Pin
Luc Pattyn4-May-09 10:19
sitebuilderLuc Pattyn4-May-09 10:19 
QuestionPowerPoint-Automation, Navigate through slides by c# Pin
heikogerdd4-May-09 6:41
heikogerdd4-May-09 6:41 
QuestionAccess denied Pin
jon-804-May-09 5:40
professionaljon-804-May-09 5:40 
AnswerRe: Access denied Pin
I am BATMAN4-May-09 6:10
I am BATMAN4-May-09 6:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.