In one of our applications, we need to create a new image which contains the text that the user types in a RichTextBox.
The new image should be created such that the user should be able to specify the width and height of the image, and the text in the RichTextBox should wrap and fit within the image (nothing should go out of the image rectangle area as long as the area is good enough to hold all the text).
Can someone please provide code for how this can be done?
We don't need any fancy coloring etc.
Just a simple image containing the text wrapped according to the image size.