2 instantiations of StrokeCollectionSerializer
PresentationCore (2)
System\Windows\Ink\StrokeCollection.cs (2)
70
StrokeCollectionSerializer serializer = new
StrokeCollectionSerializer
(this);
101
StrokeCollectionSerializer serializer = new
StrokeCollectionSerializer
(this)
87 references to StrokeCollectionSerializer
PresentationCore (87)
MS\Internal\Ink\Bezier.cs (3)
71
p.X *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
72
p.Y *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
178
fitError = 0.03f * (data.Distance() *
StrokeCollectionSerializer
.HimetricToAvalonMultiplier);
MS\Internal\Ink\CuspData.cs (4)
43
point.X *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
44
point.Y *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
65
point2.X *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
66
point2.Y *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (7)
150
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Input buffer passed was shorter than expected"));
155
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("output buffer length was zero"));
195
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Input buffer was too short (must be at least 3 bytes)"));
235
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid decompression algo byte"));
263
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid compression specified or computed by FindPropAlgoByte"));
310
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("input.Length must be at least 2"));
320
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus isf, we don't decompress property data with lz"));
MS\Internal\Ink\InkSerializedFormat\Compress.cs (2)
89
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage(SR.DecompressPacketDataFailed));
158
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage(SR.DecompressPropertyFailed));
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (3)
430
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Custom Attribute tag embedded in ISF stream does not match guid table"), nameof(tag));
457
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"), nameof(cbSize));
478
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"), nameof(cbSize));
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (11)
134
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("ISF size is larger than maximum stream size"));
143
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Drawing Attribute tag embedded in ISF stream does not match guid table"));
154
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid PenTip value found in ISF stream"));
177
throw new InvalidOperationException(
StrokeCollectionSerializer
. ISFDebugMessage("ROP data size was not found"));
218
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("ISF size if greater then maximum stream size"));
225
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"));
362
stylusHeight *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
363
stylusWidth *=
StrokeCollectionSerializer
.HimetricToAvalonMultiplier;
532
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("ROP data size was not found"));
541
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("ROP data was incorrectly serialized"));
635
size *=
StrokeCollectionSerializer
.AvalonToHimetricMultiplier;
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (6)
362
throw new ArgumentNullException(
StrokeCollectionSerializer
.ISFDebugMessage("input or compressed data was null in Compress"));
384
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("Transform returned unexpected results"));
410
throw new ArgumentNullException(
StrokeCollectionSerializer
.ISFDebugMessage("reader or compressedData was null in compress"));
438
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus GorillaEncodingType passed to compress"));
478
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus GorillaEncodingType passed to GetDataFromReader"));
623
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("bogus GorillaEncodingType passed to Uncompress"));
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (3)
113
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Tag is outside of the known guid tag range"));
137
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Tag is outside of the known guid tag range"));
260
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(strm, guids, Native.SizeOfGuid);
MS\Internal\Ink\InkSerializedFormat\HuffCodec.cs (1)
237
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("invalid huffman encoded data"));
MS\Internal\Ink\InkSerializedFormat\HuffModule.cs (1)
59
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("invalid codec computed"));
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (12)
27
StrokeCollectionSerializer
.IdentityTransformDescriptor = transformDescriptor;
219
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(isfStream, inputdata, cb);
222
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"), nameof(isfStream));
593
currentTabletToInkTransform.Scale(
StrokeCollectionSerializer
.HimetricToAvalonMultiplier,
StrokeCollectionSerializer
.HimetricToAvalonMultiplier);
741
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Global Custom Attribute tag embedded in ISF stream does not match guid table"), "inkdata");
1118
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(strm, data, size);
1210
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid argument passed to ReliableRead"));
1587
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Button guid tag embedded in ISF stream does not match guid table"),nameof(strd));
1603
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF with NoX or NoY specified"), nameof(strd));
1627
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Packet Description Property tag embedded in ISF stream does not match guid table"), nameof(strd));
2593
TransformDescriptor xform =
StrokeCollectionSerializer
.IdentityTransformDescriptor;
MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (2)
296
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)
84
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("invalid input in MultiByteCodec.Decode"));
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (24)
76
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Stroke size (" +
156
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Packet buffer overflowed the ISF stream"));
182
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Stroke Custom Attribute tag embedded in ISF stream does not match guid table"));
195
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
230
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
244
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
253
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
262
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
270
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
279
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
283
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(stream, in_buffer, propsize);
286
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Read different size from stream then expected"));
306
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Stroke Custom Attribute tag embedded in ISF stream does not match guid table"));
320
throw new InvalidOperationException(
StrokeCollectionSerializer
.ISFDebugMessage("ExtendedProperty decoded totalBytesInStrokeBlockOfIsfStream exceeded ISF stream totalBytesInStrokeBlockOfIsfStream"));
330
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
365
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
385
uint bytesRead =
StrokeCollectionSerializer
.ReliableRead(inputStream, inputBuffer, locallyDecodedBytesRemaining);
391
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
412
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Invalid ISF data"));
486
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Buffer range is smaller than expected expected size"));
518
throw new ArgumentException(
StrokeCollectionSerializer
.ISFDebugMessage("Button data length not equal to expected length"));
660
StrokeCollectionSerializer
.StrokeLookupEntry strokeLookupEntry)
682
StrokeCollectionSerializer
.StrokeLookupEntry strokeLookupEntry,
802
StrokeCollectionSerializer
.StrokeLookupEntry strokeLookupEntry)
System\Windows\Ink\Stroke.cs (1)
232
tolerance *= (
StrokeCollectionSerializer
.AvalonToHimetricMultiplier / 2);
System\Windows\Ink\StrokeCollection.cs (2)
70
StrokeCollectionSerializer
serializer = new StrokeCollectionSerializer(this);
101
StrokeCollectionSerializer
serializer = new StrokeCollectionSerializer(this)
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (4)
524
output[x] = (int)Math.Round(stylusPoint.X *
StrokeCollectionSerializer
.AvalonToHimetricMultiplier);
525
output[x + 1] = (int)Math.Round(stylusPoint.Y *
StrokeCollectionSerializer
.AvalonToHimetricMultiplier);
593
output[0][b] = (int)Math.Round(stylusPoint.X *
StrokeCollectionSerializer
.AvalonToHimetricMultiplier);
594
output[1][b] = (int)Math.Round(stylusPoint.Y *
StrokeCollectionSerializer
.AvalonToHimetricMultiplier);