mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 22:18:13 +00:00
parent
9666f00572
commit
6b69202016
1 changed files with 2 additions and 12 deletions
|
@ -285,13 +285,7 @@ public:
|
||||||
|
|
||||||
const void *GetBits() const noexcept
|
const void *GetBits() const noexcept
|
||||||
{
|
{
|
||||||
ATLASSERT(IsDIBSection());
|
return const_cast<CImage*>(this)->GetBits();
|
||||||
const BYTE *pb = (const BYTE *)m_bm.bmBits;
|
|
||||||
if (m_eOrientation == DIBOR_BOTTOMUP)
|
|
||||||
{
|
|
||||||
pb += m_bm.bmWidthBytes * (m_bm.bmHeight - 1);
|
|
||||||
}
|
|
||||||
return pb;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetBPP() const noexcept
|
int GetBPP() const noexcept
|
||||||
|
@ -363,11 +357,7 @@ public:
|
||||||
|
|
||||||
const void* GetPixelAddress(int x, int y) const noexcept
|
const void* GetPixelAddress(int x, int y) const noexcept
|
||||||
{
|
{
|
||||||
ATLASSERT(IsDIBSection());
|
return const_cast<CImage*>(this)->GetPixelAddress(x, y);
|
||||||
const BYTE *pb = (const BYTE *)GetBits();
|
|
||||||
pb += GetPitch() * y;
|
|
||||||
pb += (GetBPP() * x) / 8;
|
|
||||||
return pb;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
COLORREF GetTransparentColor() const noexcept
|
COLORREF GetTransparentColor() const noexcept
|
||||||
|
|
Loading…
Reference in a new issue