5 references to EncoderParameter
System.Drawing.Common (1)
System\Drawing\Imaging\EncoderParameters.cs (1)
46parameters.Param[i] = new EncoderParameter(
System.Drawing.Common.Tests (4)
System\Drawing\Imaging\EncoderParameterTests.cs (4)
192using EncoderParameter ep = new(s_anyEncoder, numberOfValues, type, value); 210Assert.Throws<InvalidOperationException>(() => new EncoderParameter(s_anyEncoder, 1, (EncoderParameterValueType)999, IntPtr.Zero)); 310Assert.Throws(expected, () => new EncoderParameter(s_anyEncoder, numberOfValues, type, IntPtr.Zero)); 322Assert.Throws<OutOfMemoryException>(() => new EncoderParameter(s_anyEncoder, numberOfValues, anyType, anyValue));