internal int GetSize(MapPointTemplate mapPointTemplate, bool hasScope) { ReportSizeProperty size = mapPointTemplate.Size; if (size != null) { if (!size.IsExpression) { return(MappingHelper.ToIntPixels(size.Value, m_mapMapper.DpiX)); } if (hasScope) { return(MappingHelper.ToIntPixels(mapPointTemplate.Instance.Size, m_mapMapper.DpiX)); } return(GetDefaultSymbolSize(m_mapMapper.DpiX)); } return(GetDefaultSymbolSize(m_mapMapper.DpiX)); }
internal int GetSize(MapLineTemplate mapLineTemplate, bool hasScope) { ReportSizeProperty width = mapLineTemplate.Width; if (width != null) { if (!width.IsExpression) { return(MappingHelper.ToIntPixels(width.Value, m_mapMapper.DpiX)); } if (hasScope) { return(MappingHelper.ToIntPixels(mapLineTemplate.Instance.Width, m_mapMapper.DpiX)); } return(GetDefaultSize(m_mapMapper.DpiX)); } return(GetDefaultSize(m_mapMapper.DpiX)); }
internal static int GetDefaultSize(float dpi) { return(MappingHelper.ToIntPixels(m_defaultLineWidth, dpi)); }
internal static int GetDefaultSymbolSize(float dpi) { return(MappingHelper.ToIntPixels(m_defaultSymbolSize, dpi)); }