18 writes to parameterValue
System.Drawing (18)
commonui\System\Drawing\Advanced\EncoderParameter.cs (18)
90
parameterValue
= IntPtr.Zero;
103
parameterValue
= Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Byte)));
125
parameterValue
= Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Byte)));
144
parameterValue
= Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Int16)));
163
parameterValue
= Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Int32)));
184
parameterValue
= Marshal.AllocHGlobal(2*size);
206
parameterValue
= Marshal.AllocHGlobal(2*size);
230
parameterValue
= Marshal.AllocHGlobal(4*size);
252
parameterValue
= Marshal.StringToHGlobalAnsi(value);
270
parameterValue
= Marshal.AllocHGlobal(numberOfValues);
293
parameterValue
= Marshal.AllocHGlobal(numberOfValues);
314
parameterValue
= Marshal.AllocHGlobal(checked(numberOfValues*size));
335
parameterValue
= Marshal.AllocHGlobal(checked(numberOfValues*size));
365
parameterValue
= Marshal.AllocHGlobal(checked(numberOfValues*2*size));
394
parameterValue
= Marshal.AllocHGlobal(checked(numberOfValues*2*size));
427
parameterValue
= Marshal.AllocHGlobal(checked(numberOfValues*4*size));
472
parameterValue
= Marshal.AllocHGlobal(bytes);
516
parameterValue
= Marshal.AllocHGlobal(bytes);
45 references to parameterValue
System.Drawing (45)
commonui\System\Drawing\Advanced\EncoderParameter.cs (45)
88
if (
parameterValue
!= IntPtr.Zero)
89
Marshal.FreeHGlobal(
parameterValue
);
105
if (
parameterValue
== IntPtr.Zero)
108
Marshal.WriteByte(
parameterValue
, value);
127
if (
parameterValue
== IntPtr.Zero)
130
Marshal.WriteByte(
parameterValue
, value);
146
if (
parameterValue
== IntPtr.Zero)
149
Marshal.WriteInt16(
parameterValue
, value);
165
if (
parameterValue
== IntPtr.Zero)
168
Marshal.WriteInt32(
parameterValue
, unchecked((int)value));
186
if (
parameterValue
== IntPtr.Zero)
189
Marshal.WriteInt32(
parameterValue
, numerator);
190
Marshal.WriteInt32(Add(
parameterValue
, size), denominator);
208
if (
parameterValue
== IntPtr.Zero)
211
Marshal.WriteInt32(
parameterValue
, unchecked((int)rangebegin));
212
Marshal.WriteInt32(Add(
parameterValue
, size), unchecked((int)rangeend));
232
if (
parameterValue
== IntPtr.Zero)
235
Marshal.WriteInt32(
parameterValue
, numerator1);
236
Marshal.WriteInt32(Add(
parameterValue
, size), demoninator1);
237
Marshal.WriteInt32(Add(
parameterValue
, 2*size), numerator2);
238
Marshal.WriteInt32(Add(
parameterValue
, 3*size), demoninator2);
255
if (
parameterValue
== IntPtr.Zero)
272
if (
parameterValue
== IntPtr.Zero)
275
Marshal.Copy(value, 0,
parameterValue
, numberOfValues);
295
if (
parameterValue
== IntPtr.Zero)
298
Marshal.Copy(value, 0,
parameterValue
, numberOfValues);
316
if (
parameterValue
== IntPtr.Zero)
319
Marshal.Copy(value, 0,
parameterValue
, numberOfValues);
337
if (
parameterValue
== IntPtr.Zero)
340
int* dest = (int*)
parameterValue
;
367
if (
parameterValue
== IntPtr.Zero)
372
Marshal.WriteInt32(Add(i*2*size,
parameterValue
), (int)numerator[i]);
373
Marshal.WriteInt32(Add((i*2+1)*size,
parameterValue
), (int)denominator[i]);
396
if (
parameterValue
== IntPtr.Zero)
401
Marshal.WriteInt32(Add(i*2*size,
parameterValue
), unchecked((int)rangebegin[i]));
402
Marshal.WriteInt32(Add((i*2+1)*size,
parameterValue
), unchecked((int)rangeend[i]));
429
if (
parameterValue
== IntPtr.Zero)
434
Marshal.WriteInt32(Add(
parameterValue
, 4*i*size), numerator1[i]);
435
Marshal.WriteInt32(Add(
parameterValue
, (4*i+1)*size), denominator1[i]);
436
Marshal.WriteInt32(Add(
parameterValue
, (4*i+2)*size), numerator2[i]);
437
Marshal.WriteInt32(Add(
parameterValue
, (4*i+3)*size), denominator2[i]);
474
if (
parameterValue
== IntPtr.Zero)
479
Marshal.WriteByte(Add(
parameterValue
, i), Marshal.ReadByte((IntPtr)(Value + i)));
518
if (
parameterValue
== IntPtr.Zero)
523
Marshal.WriteByte(Add(
parameterValue
, i), Marshal.ReadByte((IntPtr)(value + i)));