PC Review


Reply
Thread Tools Rate Thread

Drawing wrapped text

 
 
Sam Martin
Guest
Posts: n/a
 
      2nd Dec 2004
Hi all,

I want to be able to draw wrapped text started at a point x into the
rectangle on the first line
If there's not a GDI+ method for this, i'm guessing it's a common technique,
but can't seem to find an example.

for example

normal DrawString(string, font, brush, xpos, width) (from memory)

so this is fine for drawing

My name is sam
and drawstring
automatically
wrapped this for
me.

however, i want to start the first line 50px in
i.e.

My name
is sam and
drawstring
automatically
wrapped this for
me.

See what i mean?

any help appreaciated

sam


 
Reply With Quote
 
 
 
 
=?Utf-8?B?TW9oYW1tYWQtUmV6YQ==?=
Guest
Posts: n/a
 
      2nd Dec 2004
You must specify rectangle of your text position and then GDI+ it self will
wrap your text.

"Sam Martin" wrote:

> Hi all,
>
> I want to be able to draw wrapped text started at a point x into the
> rectangle on the first line
> If there's not a GDI+ method for this, i'm guessing it's a common technique,
> but can't seem to find an example.
>
> for example
>
> normal DrawString(string, font, brush, xpos, width) (from memory)
>
> so this is fine for drawing
>
> My name is sam
> and drawstring
> automatically
> wrapped this for
> me.
>
> however, i want to start the first line 50px in
> i.e.
>
> My name
> is sam and
> drawstring
> automatically
> wrapped this for
> me.
>
> See what i mean?
>
> any help appreaciated
>
> sam
>
>
>

 
Reply With Quote
 
Sam Martin
Guest
Posts: n/a
 
      2nd Dec 2004
yeah, i know.
but don't necessary want to start the text rendering at point 0,0 or the
block.

how would you go about inserting an indent?
tia
sam

"Mohammad-Reza" <(E-Mail Removed)> wrote in message
news:5782FE98-D690-4574-AFC3-(E-Mail Removed)...
> You must specify rectangle of your text position and then GDI+ it self
> will
> wrap your text.
>
> "Sam Martin" wrote:
>
>> Hi all,
>>
>> I want to be able to draw wrapped text started at a point x into the
>> rectangle on the first line
>> If there's not a GDI+ method for this, i'm guessing it's a common
>> technique,
>> but can't seem to find an example.
>>
>> for example
>>
>> normal DrawString(string, font, brush, xpos, width) (from memory)
>>
>> so this is fine for drawing
>>
>> My name is sam
>> and drawstring
>> automatically
>> wrapped this for
>> me.
>>
>> however, i want to start the first line 50px in
>> i.e.
>>
>> My name
>> is sam and
>> drawstring
>> automatically
>> wrapped this for
>> me.
>>
>> See what i mean?
>>
>> any help appreaciated
>>
>> sam
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
memo field on the form-- text wrapped/ text unwrapped DiDi Microsoft Access Forms 1 5th Feb 2007 04:05 PM
Wrapped text =?Utf-8?B?Vmlja3k=?= Microsoft Excel Misc 0 3rd Oct 2006 12:13 AM
System.Drawing For Drawing Text Images jjbutera@hotmail.com Microsoft ASP .NET 1 9th Jan 2006 09:55 PM
wrapped text =?Utf-8?B?SHVnZQ==?= Microsoft Excel Misc 2 11th Dec 2003 02:02 AM
2nd line of wrapped text Joyce Microsoft Excel Misc 4 29th Nov 2003 12:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:20 AM.