55 references to PixelsPerDip
PresentationCore (55)
MS\Internal\TextFormatting\FullTextLine.cs (10)
347double realFormatWidth = _metrics._formatter.IdealToReal(finiteFormatWidth, PixelsPerDip); 348hasOverflowed = (TextFormatterImp.CompareReal(realWidth, realFormatWidth, PixelsPerDip, _textFormattingMode) > 0); 545_metrics._formatter.IdealToReal(_paragraphWidth, PixelsPerDip), 546_metrics._formatter.IdealToReal(_metrics._height, PixelsPerDip) 717if (TextFormatterImp.CompareReal(constraintWidth, Width, PixelsPerDip, _textFormattingMode) > 0) 733(float)PixelsPerDip, 742FullTextLine line = new TextMetrics.FullTextLine(_textFormattingMode, IsJustified, PixelsPerDip); 977return _metrics._formatter.IdealToReal(LSLineUToParagraphU(DistanceFromCharacterHit(characterHit)), PixelsPerDip); 2576get { return _metrics._formatter.IdealToReal(_textMinWidthAtTrailing + _metrics._textStart, PixelsPerDip); } 2630double paragraphWidth = _metrics._formatter.IdealToReal(_paragraphWidth, PixelsPerDip);
MS\Internal\TextFormatting\LineServicesCallbacks.cs (19)
1226penThickness = currentLine.Formatter.IdealToReal(ulThickness * penThickness, currentLine.PixelsPerDip); 1230penThickness = currentLine.Formatter.IdealToReal(penThickness * lsrun.EmSize, currentLine.PixelsPerDip); 1257unitValue = currentLine.Formatter.IdealToReal(lsrun.EmSize, currentLine.PixelsPerDip); 1270double lineLength = currentLine.Formatter.IdealToReal(ulLength, currentLine.PixelsPerDip); 2468currentLine.Formatter.IdealToReal(currentLine.LSLineUToParagraphU(lsrunOrigin.x), currentLine.PixelsPerDip)+ Draw.VectorToLineOrigin.X, 2469currentLine.Formatter.IdealToReal((lsrunOrigin.y + lsrun.BaselineMoveOffset), currentLine.PixelsPerDip) + Draw.VectorToLineOrigin.Y 3067glyphAdvances = new ThousandthOfEmRealDoubles(textFormatterImp.IdealToReal(lsrun.EmSize, currentLine.PixelsPerDip), glyphCount); 3068glyphOffsets = new ThousandthOfEmRealPoints(textFormatterImp.IdealToReal(lsrun.EmSize, currentLine.PixelsPerDip), glyphCount); 3073glyphAdvances[i] = textFormatterImp.IdealToReal(piJustifiedGlyphAdvances[i], currentLine.PixelsPerDip); 3075textFormatterImp.IdealToReal(piiGlyphOffsets[i].du, currentLine.PixelsPerDip), 3076textFormatterImp.IdealToReal(piiGlyphOffsets[i].dv, currentLine.PixelsPerDip) 3091currentLine.PixelsPerDip, 3101glyphAdvances.Add(textFormatterImp.IdealToReal(piJustifiedGlyphAdvances[i], currentLine.PixelsPerDip)); 3109textFormatterImp.IdealToReal(piiGlyphOffsets[i].du, currentLine.PixelsPerDip), 3110textFormatterImp.IdealToReal(piiGlyphOffsets[i].dv, currentLine.PixelsPerDip) 3210charWidths = new ThousandthOfEmRealDoubles(textFormatterImp.IdealToReal(lsrun.EmSize, Draw.CurrentLine.PixelsPerDip), cchText); 3214charWidths[i] = textFormatterImp.IdealToReal(piCharAdvances[i], Draw.CurrentLine.PixelsPerDip); 3228Draw.CurrentLine.PixelsPerDip, 3238charWidths.Add(textFormatterImp.IdealToReal(piCharAdvances[i], Draw.CurrentLine.PixelsPerDip));
MS\Internal\TextFormatting\LineServicesRun.cs (9)
315xy = new Point(line.Formatter.IdealToReal(line.ParagraphWidth, line.PixelsPerDip) - vectorToOrigin.X - u + origin.X, v + origin.Y); 348xy = new Point(line.Formatter.IdealToReal(line.ParagraphWidth - u, line.PixelsPerDip) - vectorToOrigin.X + origin.X, line.Formatter.IdealToReal(v, line.PixelsPerDip) + origin.Y); 352xy = new Point(line.Formatter.IdealToReal(u, line.PixelsPerDip) + vectorToOrigin.X + origin.X, line.Formatter.IdealToReal(v, line.PixelsPerDip) + origin.Y); 414new Point(line.Formatter.IdealToReal(topLeft.x, line.PixelsPerDip), line.Formatter.IdealToReal(topLeft.y, line.PixelsPerDip)), 415new Point(line.Formatter.IdealToReal(bottomRight.x, line.PixelsPerDip), line.Formatter.IdealToReal(bottomRight.y, line.PixelsPerDip))
MS\Internal\TextFormatting\SimpleTextLine.cs (17)
309_baselineOffset = formatter.IdealToReal(TextFormatterImp.RealToIdeal(realAscent), PixelsPerDip); 313_height = formatter.IdealToReal(TextFormatterImp.RealToIdeal(realHeight), PixelsPerDip); 317_height = formatter.IdealToReal(TextFormatterImp.RealToIdeal(realAscent) + TextFormatterImp.RealToIdeal(realDescent), PixelsPerDip); 326_height = formatter.IdealToReal((int)Math.Round(pap.DefaultTypeface.LineSpacing(pap.EmSize, Constants.DefaultIdealToReal, PixelsPerDip, _settings.TextFormattingMode)), PixelsPerDip); 327_baselineOffset = formatter.IdealToReal((int)Math.Round(pap.DefaultTypeface.Baseline(pap.EmSize, Constants.DefaultIdealToReal, PixelsPerDip, _settings.TextFormattingMode)), PixelsPerDip); 357_offset = formatter.IdealToReal(_idealOffsetUnRounded, PixelsPerDip); 362_offset = formatter.IdealToReal(_idealOffsetUnRounded, PixelsPerDip); 368_width = formatter.IdealToReal(idealWidth, PixelsPerDip); 369_widthAtTrailing = formatter.IdealToReal(idealWidthAtTrailing, PixelsPerDip); 370_paragraphWidth = formatter.IdealToReal(paragraphWidth, PixelsPerDip); 464return _settings.Formatter.IdealToReal(idealAdvance + _idealOffsetUnRounded, PixelsPerDip); 602_settings.Formatter.IdealToReal(idealXRelativeToOrigin, PixelsPerDip) + origin.X, 923displayGlyphAdvances[i] = _settings.Formatter.IdealToReal(run.NominalAdvances[i], PixelsPerDip); 932displayGlyphAdvances.Add(_settings.Formatter.IdealToReal(run.NominalAdvances[i], PixelsPerDip)); 947(float)PixelsPerDip,