return GetImplementation(*this).Rotate( angle );
}
+bool PixelBuffer::IsAlphaPreMultiplied() const
+{
+ return GetImplementation(*this).IsAlphaPreMultiplied();
+}
+
} // namespace Devel
} // namespace Dali
*/
bool Rotate( Degree angle );
+ /**
+ * @brief Returns pixel-buffer is premultiplied or not.
+ * @return true if alpha is pre-multiplied.
+ */
+ bool IsAlphaPreMultiplied() const;
+
public:
/**
mBufferSize( bufferSize ),
mWidth( width ),
mHeight( height ),
- mPixelFormat( pixelFormat )
+ mPixelFormat( pixelFormat ),
+ mPreMultiplied( false )
{
}
pixel += bytesPerPixel;
}
}
+ mPreMultiplied = true;
+}
+
+bool PixelBuffer::IsAlphaPreMultiplied() const
+{
+ return mPreMultiplied;
}
}// namespace Adaptor
*/
bool Rotate( Degree angle );
+ /**
+ * @copydoc Devel::PixelBuffer::IsAlphaPreMultiplied()
+ */
+ bool IsAlphaPreMultiplied() const;
+
private:
/*
* Undefined copy constructor.
unsigned int mWidth; ///< Buffer width in pixels
unsigned int mHeight; ///< Buffer height in pixels
Pixel::Format mPixelFormat; ///< Pixel format
+ bool mPreMultiplied; ///< PreMultiplied
};
} // namespace Adaptor