MCPcopy Create free account
hub / github.com/comaps/comaps / GetPixelSize

Method GetPixelSize

libs/drape/texture_manager.cpp:134–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134m2::PointF TextureManager::BaseRegion::GetPixelSize() const
135{
136 if (!IsValid())
137 return m2::PointF(0.0f, 0.0f);
138
139 m2::RectF const & texRect = m_info->GetTexRect();
140 return m2::PointF(texRect.SizeX() * m_texture->GetWidth(), texRect.SizeY() * m_texture->GetHeight());
141}
142
143float TextureManager::BaseRegion::GetPixelHeight() const
144{

Callers 15

CacheUserMarksFunction · 0.80
DrawMethod · 0.80
operator()Method · 0.80
CacheDynamicGeometryMethod · 0.80
PlaceTitlesFunction · 0.80
ProcessPointRulesMethod · 0.80
SolidBatchFunction · 0.80
MaskedBatchFunction · 0.80
AcceptMessageMethod · 0.80
CacheSymbolMethod · 0.80

Calls 5

SizeXMethod · 0.80
SizeYMethod · 0.80
IsValidFunction · 0.50
GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected