Returning image created by Image.FromStream(Stream stream) Method
问题 I have this function which returns an Image within the function the image is created using the Image.FromStream method According to MSDN: You must keep the stream open for the lifetime of the Image So I'm not closing the stream(if I do close the steam a GDI+ exception is thrown from the returned image object). My question is whether the stream will be closed/disposed when Image.Dispose() is called somewhere else on the returned Image public static Image GetImage(byte[] buffer, int offset, int