public CurrencyToken(BrushStrokeRenderData renderData, int inputPointsCount, int strokeSamplesCount) { Validate.IsNotNull <BrushStrokeRenderData>(renderData, "renderData"); this.renderData = renderData; this.inputPointsCount = inputPointsCount; this.strokeSamplesCount = strokeSamplesCount; }
public BrushStrokeRenderCache(BrushStrokeRenderData renderData, BrushStamp stamp, int tileEdgeLog2) { Validate.Begin().IsNotNull <BrushStrokeRenderData>(renderData, "renderData").IsNotNull <BrushStamp>(stamp, "stamp").Check(); this.renderData = renderData; this.stamp = stamp; this.lazyStampMaskDevBitmap = LazyResult.New <DeviceBitmap>(() => new DeviceBitmap(this.stamp.MaskBitmap).EnsureFrozen <DeviceBitmap>(), LazyThreadSafetyMode.ExecutionAndPublication, new SingleUseCriticalSection()); this.tileOffsetToTileDataMap = new ConcurrentDictionary <PointInt32, TileData>(); this.tileMathHelper = new TileMathHelper(TransactedToolChanges.MaxMaxRenderBounds.Size, tileEdgeLog2); }