public static Image FromStream(Stream stream, bool useEmbeddedColorManagement, bool validateImageData)
{
int num;
if (!validateImageData)
{
IntSecurity.UnmanagedCode.Demand();
}
if (stream == null)
{
throw new ArgumentException(SR.GetString("InvalidArgument", new object[] { "stream", "null" }));
}
IntPtr zero = In