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