I need one method and one function created. The function will return true or false (whether the path sent in is an jpg or not).
There are 2 examples enclosed to use. The P998 would return True and the 4221-0008R will return false.
It cannot hard code them either. Obviously cannot just go by the file extension. Because there was several gifs that I renamed to jpg even though its not jpg.
The other function will accept path as a parameter and it will create a jpg.
The part that will create a jpg cannot have a black background if the original file does not. The 4221-0008R one for example obviously does not have a black background. The background will need to be white (since jpg does not allow transparancy).
Must use the .net framework 4.0 using visual studio 2010 and must use visual basic for this.
What is needed like I said is to figure out if an image sent in is jpg or not.
Plus another function that will create a jpg. Since it needs to overwrite the file; then what that will need to do is the following.
First; save a temporary file. Then overwrite the file. Because what I want is the jpg and not the gif anymore.
The project type needs to be console application.
For the sample; will do the following.
Will first; send in the p998 one (since it should return true for jpg); then it will not create jpg. However; the second one (should return false) even though its not hard coded. For that one; because of that; it will create the jpg (to prove it works). However; the purpose of the function that returns true/false is so I can use that information elsewhere (and I won't even have it create the jpg.
Let me know if you have any questions.