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