Hermet Park
cd216a5235
example: renamed a sample, Svg2 -> DataLoad
...
The sample actually intends to test Picture::load() with a data.
2023-12-26 18:18:57 +09:00
Hermet Park
4627daf6f7
api: enhance API usability
...
Set the default values of rx = 0 and ry = 0 for the shape.
Only the round rectangle shape requires the usage of these values.
2023-06-13 10:42:57 +09:00
Hermet Park
1ae92daa9d
api: enhance Shape::fill() method usage.
...
Designate a default value for alpha which is mostly optional.
2023-06-07 12:10:31 +09:00
Hermet Park
f2fdc380b4
fix compiler warnings on MacOS
...
warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
2023-05-19 10:56:59 +09:00
Hermet Park
5d930e51e4
test/examples: -- deprecated apis call warnings.
...
Result load(const char* data, uint32_t size, bool copy = false)
-> Result load(const char* data, uint32_t size, const std::string& mimeType, bool copy = false)
Result bounds(float* x, float* y, float* w, float* h)
-> Result bounds(float* x, float* y, float* w, float* h, bool transformed)
2023-04-22 18:32:22 +09:00
Hermet Park
9b3c34c3b1
updated copyright.
2023-01-14 13:48:11 +09:00
Mira Grudzinska
74a99867df
examples: terminate the same engine as was initialized
2022-01-21 23:55:17 +01:00
Hermet Park
f0141e63de
updated copyright date.
2022-01-12 14:08:48 +09:00
Michal Maciola
cff8815404
loaders: Pass mimetype to picture::load
...
* loaders: Pass mimetype to picture::load
Added mimetype attribute to enfaster loading using a proper loader.
@Changed api: Picture::load(const char* data, uint32_t size, const std::string& mimeType, bool copy = false)
@issue: #571
2021-08-05 11:02:26 +09:00
Hermet Park
19fc4f4b37
examples: allow a desianted main thread capacity.
...
Maximum threads is not always peak the highest performance,
tvg examples guide user the proper threads count.
2021-03-24 14:19:01 +09:00
Hermet Park
1a7d41ce71
updated copyright
2021-03-23 14:31:58 +09:00
Hermet Park
20de2bfc15
common picture: revise resize method.
...
this implementation handles the center-aligned scale.
Also removed viewbox usage since we have size() method.
2020-12-07 13:56:50 +09:00
Hermet Park
e445b7f579
Revert "examples: revise example code."
...
This broke gl_engine rendering, revert it.
This reverts commit 9bb1972ef9
.
2020-11-06 15:37:17 +09:00
Hermet Park
9bb1972ef9
examples: revise example code.
...
Move the Clear call to the end of drawing those scenarios doesn't need to retain paints resources.
We should show the examples as the best usage.
@Issues: 75
2020-11-04 19:05:11 +09:00
Hermet Park
73c7782749
examples svgs: replace logo design resource.
...
White background is our official thorvg logo,
cyan is for Tizen customed.
2020-10-26 16:52:52 +09:00
Hermet Park
3e5d3b06c3
improve svg logo design quality.
2020-10-14 17:51:33 +09:00
Hermet Park
32f40bf7b0
re-tourched logo design for better quality.
2020-10-13 17:23:11 +09:00
Hermet Park
a8124f6782
Added thorvg logo svg resources,
...
Also replaced svg examples to use them.
2020-10-13 12:07:47 +09:00
Hermet Park
433746f2bd
examples: removed test prefix
2020-10-07 14:04:08 +09:00