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