المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Problem rotating AND centring text on a bitmap



C# Programming
05-05-2009, 04:13 AM
I need to place some text rotated at 45 degrees onto a bitmap. The text needs to be centred on a specific point. Placing normal text centred on a point on a bitmap is easy enough, and I’ve googled a number of different solutions to rotating text ... but I can’t rotate *and* centre on a point at the same time. An added complication is the text may sometimes contain CRLFs.

Can anyone show me the code how to do this (in VS2005)? Thanks.