2 instantiations of StrokeCollectionSerializer
PresentationCore (2)
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (2)
92
StrokeCollectionSerializer serializer = new
StrokeCollectionSerializer
(this);
126
StrokeCollectionSerializer serializer = new
StrokeCollectionSerializer
(this);
83 references to StrokeCollectionSerializer
PresentationCore (83)
Core\CSharp\MS\Internal\Ink\Bezier.cs (3)
77
p.X *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
78
p.Y *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
184
fitError = 0.03f * (data.Distance() *
StrokeCollectionSerializer
.HimetricToAvalonMultiplier);
Core\CSharp\MS\Internal\Ink\CuspData.cs (4)
48
point.X *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
49
point.Y *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
68
point2.X *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
69
point2.Y *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (7)
168
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Input buffer passed was shorter than expected"));
176
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("output buffer length was zero"));
216
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Input buffer was too short (must be at least 3 bytes)"));
256
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid decompression algo byte"));
285
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid compression specified or computed by FindPropAlgoByte"));
335
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("input.Length must be at least 2"));
345
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus isf, we don't decompress property data with lz"));
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\Compress.cs (2)
121
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage(SR.Get(SRID.DecompressPacketDataFailed)));
202
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage(SR.Get(SRID.DecompressPropertyFailed)));
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (3)
472
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Custom Attribute tag embedded in ISF stream does not match guid table"), "tag");
499
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"), "cbSize");
520
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"), "cbSize");
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (11)
155
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("ISF size is larger than maximum stream size"));
164
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Drawing Attribute tag embedded in ISF stream does not match guid table"));
175
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid PenTip value found in ISF stream"));
198
throw new InvalidOperationException(
StrokeCollectionSerializer
. ISFDebugMessage("ROP data size was not found"));
239
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("ISF size if greater then maximum stream size"));
246
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"));
383
stylusHeight *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
384
stylusWidth *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
564
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("ROP data size was not found"));
573
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("ROP data was incorrectly serialized"));
685
size *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (6)
379
throw new ArgumentNullException(
StrokeCollectionSerializer
.ISFDebugMessage("input or compressed data was null in Compress"));
404
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("Transform returned unexpected results"));
430
throw new ArgumentNullException(
StrokeCollectionSerializer
.ISFDebugMessage("reader or compressedData was null in compress"));
464
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus GorillaEncodingType passed to compress"));
504
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus GorillaEncodingType passed to GetDataFromReader"));
673
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus GorillaEncodingType passed to Uncompress"));
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (3)
114
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Tag is outside of the known guid tag range"));
138
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Tag is outside of the known guid tag range"));
262
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(strm, guids, Native.SizeOfGuid);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\HuffCodec.cs (1)
253
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("invalid huffman encoded data"));
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\HuffModule.cs (1)
76
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("invalid codec computed"));
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (12)
44
StrokeCollectionSerializer
.IdentityTransformDescriptor = transformDescriptor;
236
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(isfStream, inputdata, cb);
239
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"), "isfStream");
617
currentTabletToInkTransform.Scale(
StrokeCollectionSerializer
.HimetricToAvalonMultiplier,
StrokeCollectionSerializer
.HimetricToAvalonMultiplier);
765
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Global Custom Attribute tag embedded in ISF stream does not match guid table"), "inkdata");
1143
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(strm, data, size);
1236
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid argument passed to ReliableRead"));
1618
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Button guid tag embedded in ISF stream does not match guid table"),"strd");
1634
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF with NoX or NoY specified"), "strd");
1658
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Packet Description Property tag embedded in ISF stream does not match guid table"), "strd");
2685
TransformDescriptor xform =
StrokeCollectionSerializer
.IdentityTransformDescriptor;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (2)
296
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("MetricEntryType was persisted with Never flag which should never happen"));
443
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("MetricEntry cannot be null"));
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\MultiByteCodec.cs (1)
100
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("invalid input in MultiByteCodec.Decode"));
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (24)
93
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Stroke size (" +
183
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Packet buffer overflowed the ISF stream"));
209
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Stroke Custom Attribute tag embedded in ISF stream does not match guid table"));
222
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
257
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
271
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
280
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
289
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
297
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
306
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
310
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(stream, in_buffer, propsize);
313
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"));
333
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Stroke Custom Attribute tag embedded in ISF stream does not match guid table"));
347
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("ExtendedProperty decoded totalBytesInStrokeBlockOfIsfStream exceeded ISF stream totalBytesInStrokeBlockOfIsfStream"));
357
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
400
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
420
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(inputStream, inputBuffer, locallyDecodedBytesRemaining);
426
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
447
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
522
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Buffer range is smaller than expected expected size"));
554
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Button data length not equal to expected length"));
707
StrokeCollectionSerializer
.StrokeLookupEntry strokeLookupEntry)
729
StrokeCollectionSerializer
.StrokeLookupEntry strokeLookupEntry,
858
StrokeCollectionSerializer
.StrokeLookupEntry strokeLookupEntry)
Core\CSharp\System\Windows\Ink\Stroke.cs (1)
255
tolerance *= (
StrokeCollectionSerializer
.AvalonToHimetricMultiplier / 2);
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (2)
92
StrokeCollectionSerializer
serializer = new StrokeCollectionSerializer(this);
126
StrokeCollectionSerializer
serializer = new StrokeCollectionSerializer(this);