rifter1818 Posted March 3, 2004 Posted March 3, 2004 I have no idea whats causing this but the allignment is really off works perfectly for top left but centered oh boy... draws it well outside the rectangle it was intended for... Any one else experianced this, and i tried going to the 1901 build but so much more went wrong there im going back to 900.... Quote
*Experts* mutant Posted March 3, 2004 *Experts* Posted March 3, 2004 What went wrong? What text are you drawing? 2D or 3D? Quote
rifter1818 Posted March 3, 2004 Author Posted March 3, 2004 2d Text Usunge the font.drawtext ... with the allignment of 1 or 4,.. it draws the text way outside the intended rectangle but it draws it right if the allignment is 0, Quote
*Experts* mutant Posted March 7, 2004 *Experts* Posted March 7, 2004 Completely forgot about this thread, sorry :) Can you show some you are using to draw the text? Like how big you are making the rectangle, font etc. As far as I can tell drawing 2D text works fine for me. Quote
rifter1818 Posted March 7, 2004 Author Posted March 7, 2004 I found the solution I just have to convert the rectangles then allignment will work. Rect = new rectangle(rect.x,rect.y,Rect.Right,Right.bottom) instead of Rect= new rectangle(X,Y,Width,Height) The only reason for this error that i can think of is that Microsoft developers used the WRONG VARIABLES and didnt notice... Note that the expanded Rectangle now alligns the text to the dimensions of the old rectangle. Quote
Kavan Posted March 7, 2004 Posted March 7, 2004 (edited) They were probably mapping C++ RECT structure to .NET Rectangle by copying memory. And here's the problem. RECT is defined by x1,y1,x2,y2 while Rectangle is defined by x1,y1,width,height. By the way, this will be solved in the Summer Update 2004. Edited March 7, 2004 by Kavan Quote
rifter1818 Posted March 8, 2004 Author Posted March 8, 2004 They were probably mapping C++ RECT structure to .NET Rectangle by copying memory. And here's the problem. RECT is defined by x1' date='y1,x2,y2 while Rectangle is defined by x1,y1,width,height. By the way, this will be solved in the Summer Update 2004.[/quote'] That sounds quite believable, im not multilingual enough to know that the C++ RECT would be any different (i only know VB right now but im going to learn others over time) You live and learn i guess. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.