tvg::Picture is replaced to tvg::Scene if the picture has the vector tree,
Thus it's useless since it won't be reached logically.
const uint32_t* data(uint32_t* w, uint32_t* h) const noexcept;
/**
- * Must remove it!
- * @BETA_API
- */
- Result paint(std::unique_ptr<Paint> paint) noexcept;
-
- /**
* @brief Loads a raw data from a memory block with a given size.
*
* @warning Please do not use it, this API is not official one. It could be modified in the next version.
if (h) *h = 0;
}
return pImpl->pixels;
-}
-
-
-Result Picture::paint(unique_ptr<Paint> paint) noexcept
-{
- if (pImpl->paint) return Result::InsufficientCondition;
- auto p = paint.release();
- if (!p) return Result::MemoryCorruption;
- pImpl->paint = p;
- return Result::Success;
-}
+}
\ No newline at end of file
//Case2: Base Paint Properties
if (_parsePaintProperty(block, picture)) return true;
- //Case3: Vector Picture
- if (auto paint = _parsePaint(block)) {
- picture->paint(unique_ptr<Paint>(paint));
- return true;
- }
-
+ //Vector Picture won't be requested since Saver replaces it with the Scene
return false;
}