Click here to Skip to main content
15,889,442 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All

In my application the user uploads an image and also enter a text testimonial.
The length of text can be anywhere between 10 words to 500 words.

I have to generate a new image having text overlayed on the original image.

I know how to add text to image but that is all in a straight line. Here i want text to break and move on to next line when it reaches the image right border. The text would start at top left corner of the image.

Please suggest a solution.
Posted

1 solution

I only can imagine what do you use for text-drawing (no code), but on option to draw multiline text is using the right overload of DrawString (the one with rectangle as option instead of poin)...
https://msdn.microsoft.com/en-us/library/baw6k39s(v=vs.110).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900