2 instantiations of StrokeCollectionSerializer
PresentationCore (2)
System\Windows\Ink\StrokeCollection.cs (2)
83
StrokeCollectionSerializer serializer = new
StrokeCollectionSerializer
(this);
114
StrokeCollectionSerializer serializer = new
StrokeCollectionSerializer
(this);
87 references to StrokeCollectionSerializer
PresentationCore (87)
MS\Internal\Ink\Bezier.cs (3)
77
p.X *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
78
p.Y *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
184
fitError = 0.03f * (data.Distance() *
StrokeCollectionSerializer
.HimetricToAvalonMultiplier);
MS\Internal\Ink\CuspData.cs (4)
47
point.X *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
48
point.Y *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
67
point2.X *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
68
point2.Y *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (7)
165
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Input buffer passed was shorter than expected"));
170
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("output buffer length was zero"));
210
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Input buffer was too short (must be at least 3 bytes)"));
250
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid decompression algo byte"));
278
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid compression specified or computed by FindPropAlgoByte"));
325
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("input.Length must be at least 2"));
335
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus isf, we don't decompress property data with lz"));
MS\Internal\Ink\InkSerializedFormat\Compress.cs (2)
103
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage(SR.DecompressPacketDataFailed));
172
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage(SR.DecompressPropertyFailed));
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (3)
447
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Custom Attribute tag embedded in ISF stream does not match guid table"), "tag");
474
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"), "cbSize");
495
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"), "cbSize");
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (11)
145
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("ISF size is larger than maximum stream size"));
154
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Drawing Attribute tag embedded in ISF stream does not match guid table"));
165
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid PenTip value found in ISF stream"));
188
throw new InvalidOperationException(
StrokeCollectionSerializer
. ISFDebugMessage("ROP data size was not found"));
229
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("ISF size if greater then maximum stream size"));
236
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"));
373
stylusHeight *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
374
stylusWidth *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
543
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("ROP data size was not found"));
552
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("ROP data was incorrectly serialized"));
646
size *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (6)
378
throw new ArgumentNullException(
StrokeCollectionSerializer
.ISFDebugMessage("input or compressed data was null in Compress"));
400
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("Transform returned unexpected results"));
426
throw new ArgumentNullException(
StrokeCollectionSerializer
.ISFDebugMessage("reader or compressedData was null in compress"));
454
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus GorillaEncodingType passed to compress"));
494
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus GorillaEncodingType passed to GetDataFromReader"));
639
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus GorillaEncodingType passed to Uncompress"));
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (3)
118
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Tag is outside of the known guid tag range"));
142
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Tag is outside of the known guid tag range"));
265
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(strm, guids, Native.SizeOfGuid);
MS\Internal\Ink\InkSerializedFormat\HuffCodec.cs (1)
253
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("invalid huffman encoded data"));
MS\Internal\Ink\InkSerializedFormat\HuffModule.cs (1)
74
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("invalid codec computed"));
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (12)
41
StrokeCollectionSerializer
.IdentityTransformDescriptor = transformDescriptor;
233
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(isfStream, inputdata, cb);
236
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"), "isfStream");
607
currentTabletToInkTransform.Scale(
StrokeCollectionSerializer
.HimetricToAvalonMultiplier,
StrokeCollectionSerializer
.HimetricToAvalonMultiplier);
755
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Global Custom Attribute tag embedded in ISF stream does not match guid table"), "inkdata");
1129
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(strm, data, size);
1221
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid argument passed to ReliableRead"));
1603
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Button guid tag embedded in ISF stream does not match guid table"),"strd");
1619
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF with NoX or NoY specified"), "strd");
1643
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Packet Description Property tag embedded in ISF stream does not match guid table"), "strd");
2624
TransformDescriptor xform =
StrokeCollectionSerializer
.IdentityTransformDescriptor;
MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (2)
299
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("MetricEntryType was persisted with Never flag which should never happen"));
446
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("MetricEntry cannot be null"));
MS\Internal\Ink\InkSerializedFormat\MultiByteCodec.cs (1)
99
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("invalid input in MultiByteCodec.Decode"));
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (24)
84
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Stroke size (" +
164
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Packet buffer overflowed the ISF stream"));
190
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Stroke Custom Attribute tag embedded in ISF stream does not match guid table"));
203
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
238
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
252
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
261
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
270
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
278
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
287
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
291
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(stream, in_buffer, propsize);
294
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"));
314
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Stroke Custom Attribute tag embedded in ISF stream does not match guid table"));
328
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("ExtendedProperty decoded totalBytesInStrokeBlockOfIsfStream exceeded ISF stream totalBytesInStrokeBlockOfIsfStream"));
338
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
373
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
393
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(inputStream, inputBuffer, locallyDecodedBytesRemaining);
399
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
420
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
494
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Buffer range is smaller than expected expected size"));
526
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Button data length not equal to expected length"));
668
StrokeCollectionSerializer
.StrokeLookupEntry strokeLookupEntry)
690
StrokeCollectionSerializer
.StrokeLookupEntry strokeLookupEntry,
810
StrokeCollectionSerializer
.StrokeLookupEntry strokeLookupEntry)
System\Windows\Ink\Stroke.cs (1)
248
tolerance *= (
StrokeCollectionSerializer
.AvalonToHimetricMultiplier / 2);
System\Windows\Ink\StrokeCollection.cs (2)
83
StrokeCollectionSerializer
serializer = new StrokeCollectionSerializer(this);
114
StrokeCollectionSerializer
serializer = new StrokeCollectionSerializer(this);
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (4)
533
output[x] = (int)Math.Round(stylusPoint.X *
StrokeCollectionSerializer
.AvalonToHimetricMultiplier);
534
output[x + 1] = (int)Math.Round(stylusPoint.Y *
StrokeCollectionSerializer
.AvalonToHimetricMultiplier);
602
output[0][b] = (int)Math.Round(stylusPoint.X *
StrokeCollectionSerializer
.AvalonToHimetricMultiplier);
603
output[1][b] = (int)Math.Round(stylusPoint.Y *
StrokeCollectionSerializer
.AvalonToHimetricMultiplier);