MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / isRectangular

Method isRectangular

src/doc/mask.cpp:72–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool Mask::isRectangular() const
73{
74 if (!m_bitmap)
75 return false;
76
77 LockImageBits<BitmapTraits> bits(m_bitmap.get());
78 LockImageBits<BitmapTraits>::iterator it = bits.begin(), end = bits.end();
79
80 for (; it != end; ++it) {
81 if (*it == 0)
82 return false;
83 }
84
85 return true;
86}
87
88void Mask::copyFrom(const Mask* sourceMask)
89{

Callers 1

onExecuteMethod · 0.80

Calls 3

getMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected