Challenge 44 – Add Text to Me
Challenge 44 required using a jpeg image and programmatically adding text to the image.
A hobbyist has taken a jpeg image. He wishes to programmatically add text to the jpeg image.
The image is located at http://www.gnazzo.net/ImagesSave/ShellyIPad/IMG_0005.JPG
The 2 lines of text he wishes to place on the image are:
- Date of the image “11/27/2016”
- Title of the image “Fun at Caribou Coffee”
The text must be centered and placed at the bottom of the image. The text should be white in color with a black background.
- Center the 2 lines of text at the bottom of the page.
- Text should be white in color.
- Text background should have a black background.
- Winner will be judged on accuracy and completeness of the solution.
Winners (out of approximately 10 respondents)
Thanks to everybody for your responses to SCS Coding Challenge #44!!!
Congratulations to Allison Benneth for her fine efforts to come up with a workable solution.
|Name||Prize Winner||Good Answer|
Monthly Programming Tips
Do not bother with Temporary Collections, Use Yield instead
A temporary list that holds salvaged and returned items may be created when developers want to pick items from a collection. When using a temporary list, use this C# code.
In order to prevent the temporary collection from being used, developers can use yield. Yield gives out results according to the result set enumeration. When using yield, use this code
Developers also have the option of using LINQ.
Coding Challenge #45
Please stay tuned, SCS Coding Challenge #45 will be published this week. Details will follow. The winner will be awarded based upon the best approach.