2 instantiations of StrokeCollectionSerializer
PresentationCore (2)
System\Windows\Ink\StrokeCollection.cs (2)
71
StrokeCollectionSerializer serializer = new
StrokeCollectionSerializer
(this);
102
StrokeCollectionSerializer serializer = new
StrokeCollectionSerializer
(this);
87 references to StrokeCollectionSerializer
PresentationCore (87)
MS\Internal\Ink\Bezier.cs (3)
72
p.X *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
73
p.Y *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
179
fitError = 0.03f * (data.Distance() *
StrokeCollectionSerializer
.HimetricToAvalonMultiplier);
MS\Internal\Ink\CuspData.cs (4)
42
point.X *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
43
point.Y *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
62
point2.X *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
63
point2.Y *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (7)
151
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Input buffer passed was shorter than expected"));
156
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("output buffer length was zero"));
196
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Input buffer was too short (must be at least 3 bytes)"));
236
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid decompression algo byte"));
264
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid compression specified or computed by FindPropAlgoByte"));
311
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("input.Length must be at least 2"));
321
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus isf, we don't decompress property data with lz"));
MS\Internal\Ink\InkSerializedFormat\Compress.cs (2)
90
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage(SR.DecompressPacketDataFailed));
159
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage(SR.DecompressPropertyFailed));
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (3)
435
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Custom Attribute tag embedded in ISF stream does not match guid table"), "tag");
462
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"), "cbSize");
483
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"), "cbSize");
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (11)
135
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("ISF size is larger than maximum stream size"));
144
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Drawing Attribute tag embedded in ISF stream does not match guid table"));
155
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid PenTip value found in ISF stream"));
178
throw new InvalidOperationException(
StrokeCollectionSerializer
. ISFDebugMessage("ROP data size was not found"));
219
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("ISF size if greater then maximum stream size"));
226
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"));
363
stylusHeight *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
364
stylusWidth *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
533
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("ROP data size was not found"));
542
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("ROP data was incorrectly serialized"));
636
size *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (6)
363
throw new ArgumentNullException(
StrokeCollectionSerializer
.ISFDebugMessage("input or compressed data was null in Compress"));
385
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("Transform returned unexpected results"));
411
throw new ArgumentNullException(
StrokeCollectionSerializer
.ISFDebugMessage("reader or compressedData was null in compress"));
439
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus GorillaEncodingType passed to compress"));
479
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus GorillaEncodingType passed to GetDataFromReader"));
624
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus GorillaEncodingType passed to Uncompress"));
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"));
261
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(strm, guids, Native.SizeOfGuid);
MS\Internal\Ink\InkSerializedFormat\HuffCodec.cs (1)
238
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("invalid huffman encoded data"));
MS\Internal\Ink\InkSerializedFormat\HuffModule.cs (1)
60
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("invalid codec computed"));
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (12)
28
StrokeCollectionSerializer
.IdentityTransformDescriptor = transformDescriptor;
220
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(isfStream, inputdata, cb);
223
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"), "isfStream");
594
currentTabletToInkTransform.Scale(
StrokeCollectionSerializer
.HimetricToAvalonMultiplier,
StrokeCollectionSerializer
.HimetricToAvalonMultiplier);
742
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Global Custom Attribute tag embedded in ISF stream does not match guid table"), "inkdata");
1116
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(strm, data, size);
1208
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid argument passed to ReliableRead"));
1590
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Button guid tag embedded in ISF stream does not match guid table"),"strd");
1606
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF with NoX or NoY specified"), "strd");
1630
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Packet Description Property tag embedded in ISF stream does not match guid table"), "strd");
2611
TransformDescriptor xform =
StrokeCollectionSerializer
.IdentityTransformDescriptor;
MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (2)
297
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("MetricEntryType was persisted with Never flag which should never happen"));
444
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("MetricEntry cannot be null"));
MS\Internal\Ink\InkSerializedFormat\MultiByteCodec.cs (1)
85
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("invalid input in MultiByteCodec.Decode"));
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (24)
77
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Stroke size (" +
157
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Packet buffer overflowed the ISF stream"));
183
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Stroke Custom Attribute tag embedded in ISF stream does not match guid table"));
196
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
231
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
245
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
254
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
263
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"));
284
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(stream, in_buffer, propsize);
287
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"));
307
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Stroke Custom Attribute tag embedded in ISF stream does not match guid table"));
321
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("ExtendedProperty decoded totalBytesInStrokeBlockOfIsfStream exceeded ISF stream totalBytesInStrokeBlockOfIsfStream"));
331
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
366
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
386
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(inputStream, inputBuffer, locallyDecodedBytesRemaining);
392
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
413
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
487
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Buffer range is smaller than expected expected size"));
519
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Button data length not equal to expected length"));
661
StrokeCollectionSerializer
.StrokeLookupEntry strokeLookupEntry)
683
StrokeCollectionSerializer
.StrokeLookupEntry strokeLookupEntry,
803
StrokeCollectionSerializer
.StrokeLookupEntry strokeLookupEntry)
System\Windows\Ink\Stroke.cs (1)
233
tolerance *= (
StrokeCollectionSerializer
.AvalonToHimetricMultiplier / 2);
System\Windows\Ink\StrokeCollection.cs (2)
71
StrokeCollectionSerializer
serializer = new StrokeCollectionSerializer(this);
102
StrokeCollectionSerializer
serializer = new StrokeCollectionSerializer(this);
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (4)
525
output[x] = (int)Math.Round(stylusPoint.X *
StrokeCollectionSerializer
.AvalonToHimetricMultiplier);
526
output[x + 1] = (int)Math.Round(stylusPoint.Y *
StrokeCollectionSerializer
.AvalonToHimetricMultiplier);
594
output[0][b] = (int)Math.Round(stylusPoint.X *
StrokeCollectionSerializer
.AvalonToHimetricMultiplier);
595
output[1][b] = (int)Math.Round(stylusPoint.Y *
StrokeCollectionSerializer
.AvalonToHimetricMultiplier);