What is the best type to use for returning an image in my C# library project?
Posted
by Sergio Tapia
on Stack Overflow
See other posts from Stack Overflow
or by Sergio Tapia
Published on 2010-06-11T13:39:45Z
Indexed on
2010/06/11
13:42 UTC
Read the original article
Hit count: 251
I'm making a project that will scrap information about a movie and return all sorts of goodies. This will be a .dll that other developers will use in their projects.
For example, if they want to set a pictureBox image to the movies poster, what would be the best way to handle my library returning the image?
//Set the image to The Matrix poster.
pictureBox1.Image = MyLibrary.GetPoster("The Matrix");
Should I return an Image? A Byte[] array?
© Stack Overflow or respective owner