Open nvquockhtn opened 7 years ago
yes
@wysaid Can you share me document or demo about this? Thank.
The same question. Thanks
Make an image, for example: "watermark.png".
Make a rule, for example: "@blend addrev watermark.png 1.0"
Make sure the loadImageCallback is right.
call setFilterWithConfig
with the rule.
Thanks for you reply. Let me try it.
Awesome, It's work fine. "@blend addrev watermark.png 100" But can you explain about "addrev" text?
Because Android is using premultiplied bitmap&texture, 'CGE_BLEND_MIX' may get a result of twice the strength of the blendImage's alpha channel(The result would be darker than you want). For common usage of mix blending, please use 'CGE_BLEND_ADDREV'.
Thanks you so much. I will donate to your Paypal account.
@huunhan18pro Thanks.
Hi @huunhan18pro @wysaid
Where should I give mCameraView.setFilterWithConfig("@blend addrev watermark.png 100");
this watermark thing, without displaying it to user watermark can be applied to the recording.
You may need to add a new filter group to do this. Change the c++ code, and add your functions.😬
how can I change size of the watermark (It is getting stretched to the whole viewport) and the watermark image's position?
how can I change size of the watermark (It is getting stretched to the whole viewport) and the watermark image's position?
You can add your own filter to do this.
This library can add watermark to video when is recording? Tks.