Text to Image - .NET CLASS
The overall concept is to take take text documents and convert them to an image or multiple images. An example would an email (text only) converted for viewing as 1 or multiple images.
Design of the object/class should work as such: (lets call the class text2image)
ImageSize [url removed, login to view]
TextFont [url removed, login to view]
TextColor [url removed, login to view]
ImageBackgroundColor [url removed, login to view]
Images() Listof/Or Array of [url removed, login to view]
ImageFormat [url removed, login to view] (BMP, PNG, etc)
The operation is quite simple. By setting the properties on the class, then choosing publish, the images either get stacked on the Images array/listof, or writted to disk using the BaseFileName as the BaseName and appending "_##" to the name for each page. The decision as whether to write to disk or stack individual Images on the property is decided by the value of the property WriteToFile which is default - FALSE.
FitToPage: Default is False. IF set to true, all text will be written to 1 image, so computing the number of lines required, then dividing that into the ImageSize as is set (minus font overhead - also using windows can tell you how man pixels high or wide the characters are) will give you an appropriate font size to scale to, OR create a temp image size large enough at some set font size, and then reduce/scale the image down to requested size.
Important: Word wrapping. Because text can overflow the width, you must provide for word wrapping. No words, sentences etc should go off the page.
If the documents is 52 lines of text, and the image size and font selected only support 24 lines per page, then you will end up with 3 images.
To be done as a .NET class and cleanly documented.
21 freelancere byder i gennemsnit $108 for dette job
Hi, I am new to freelancer.. I have 6 yrs exp in c#. I have created a sample and sent the same to you. If you are satisfied you can give it to me. Please chk Private message. :-)