X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fadaptor-framework%2Fvector-image-renderer.h;h=ab5919582a26de44e855d08cb1c007e8146504cc;hb=666559e578423c202a1c444391e1a6bf1cf7e5a5;hp=d2343d6011b018d1359a2045ee4673492ad9b9d0;hpb=bc8d591265f1182c95d908709d4cfa8961f0fb78;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/adaptor-framework/vector-image-renderer.h b/dali/devel-api/adaptor-framework/vector-image-renderer.h index d2343d6..ab59195 100644 --- a/dali/devel-api/adaptor-framework/vector-image-renderer.h +++ b/dali/devel-api/adaptor-framework/vector-image-renderer.h @@ -2,7 +2,7 @@ #define DALI_VECTOR_IMAGE_RENDERER_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -86,13 +86,20 @@ public: bool Load(const Vector& data, float dpi); /** - * @brief Rasterizes the content to the target buffer synchronously. + * @brief Query whether the vector image is loaded. * - * @param[in] buffer The target buffer - * @param[in] scale The target image scale factor - * @return True if the rendering succeeds, false otherwise. + * @return True if the image is loaded, false other wise. */ - bool Rasterize(Dali::Devel::PixelBuffer& buffer, float scale); + bool IsLoaded() const; + + /** + * @brief Rasterizes the content to the pixel buffer synchronously. + * + * @param[in] width The pixel buffer width + * @param[in] height The pixel buffer height + * @return The handle to the rasterized PixelBuffer object or an empty handle in case failed. + */ + Dali::Devel::PixelBuffer Rasterize(uint32_t width, uint32_t height); /** * @brief Gets the default size of the file.