Click here to Skip to main content
15,901,284 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Access denied Pin
Tony Richards4-May-09 7:01
Tony Richards4-May-09 7:01 
JokeRe: Access denied Pin
Dave Kreskowiak4-May-09 17:24
mveDave Kreskowiak4-May-09 17:24 
GeneralRe: Access denied Pin
jon-804-May-09 19:20
professionaljon-804-May-09 19:20 
GeneralRe: Access denied Pin
Dave Kreskowiak5-May-09 3:51
mveDave Kreskowiak5-May-09 3:51 
AnswerRe: Access denied Pin
Member 41879984-May-09 20:00
Member 41879984-May-09 20:00 
GeneralRe: Access denied Pin
Dave Kreskowiak5-May-09 3:55
mveDave Kreskowiak5-May-09 3:55 
QuestionListView Picture Pin
drcmomo4-May-09 5:11
drcmomo4-May-09 5:11 
AnswerRe: ListView Picture Pin
Henry Minute4-May-09 6:25
Henry Minute4-May-09 6:25 
GeneralRe: ListView Picture Pin
drcmomo4-May-09 8:28
drcmomo4-May-09 8:28 
GeneralRe: ListView Picture Pin
drcmomo4-May-09 8:29
drcmomo4-May-09 8:29 
GeneralRe: ListView Picture Pin
Henry Minute4-May-09 8:46
Henry Minute4-May-09 8:46 
Questionconvert uint to byte[] Pin
Huisheng Chen4-May-09 4:54
Huisheng Chen4-May-09 4:54 

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.