Your question, your audience. Choose who sees your identity—and your question—with question security.
public string[] ResizeImage(int width,int height)
{
int maxWidth = 500;
if(maxWidth<=width){
width = maxWidth;
height = height * width / maxWidth;
}
string[] arr = { width.ToString(), height.ToString() };
return arr;
}
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
http://snippets.dzone.com/