Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
nokturnal  
#1 Posted : Wednesday, June 8, 2016 4:15:01 PM(UTC)
nokturnal

Rank: Member

Groups: Member
Joined: 3/21/2016(UTC)
Posts: 22

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Hey,

I have just found a very strange scenario... and maybe I am completely misunderstanding something... but....

When I do this:

Quote:
graphics.DrawText(new PlainText("TEST TEST", font, new SolidBrush(col), 0, 0));


.. The text is rendering off the image ... meaning that a 0,0 position is referring to the BOTTOM LEFT corner of the PlainText...

That isn't right is it? The docs say "Coordinates of the upper-left corner of the text black box."

Please help!
Fedor  
#2 Posted : Wednesday, June 8, 2016 5:25:55 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,568

Thanks: 5 times
Was thanked: 64 time(s) in 63 post(s)
Hi,

Thank you for the problem report. The documentation contains the wrong information.

The Position property of the PlainText class specifies the baseline coordinates actually.

We will update the documentation shortly.

Edited by user Wednesday, June 8, 2016 5:31:41 PM(UTC)  | Reason: Not specified

Fedor attached the following image(s):
text-position.png
Best regards,
Fedor Skvortsov
thanks 1 user thanked Fedor for this useful post.
nokturnal on 6/8/2016(UTC)
nokturnal  
#3 Posted : Wednesday, June 8, 2016 5:39:30 PM(UTC)
nokturnal

Rank: Member

Groups: Member
Joined: 3/21/2016(UTC)
Posts: 22

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: Fedor Go to Quoted Post
Hi,
Thank you for the problem report. The documentation contains the wrong information.


Oh man... haha... Thanks for the reply, but I wish I would have known that 3 hours ago hehehe :)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.