I still have to understand these and also masks (after about 40 year of programming... only )3. Create mask image with shape to blur through - make color of shape transparent
4. Draw original image outside mask (see how Erel does it or use his code)
5. Draw blurred image inside mask
I don't know what you mean here but, of course, even Xenforo does not like Erel, as all of us (I really like lying )P.S. I don't know why the spelling checker of this reply doesn't like "Erel"
I forgot... this "thing" (what was asked) should work swiping the overlapping panel.Based on the Erel's very educational example (there are all kinds of tricks I didn't know about):
https://www.b4x.com/android/forum/threads/b4x-bitmapcreator-effects.93608/
1. Have two copies of the image
2. Blur the second one
3. Create mask image with shape to blur through - make color of shape transparent
4. Draw original image outside mask (see how Erel does it or use his code)
5. Draw blurred image inside mask
P.S. I don't know why the spelling checker of this reply doesn't like "Erel"
I knew it but, I don't know if even with this new version, it does... nothing (as far I know)Thanks @DonManfed, I learned something new.
@William LanceeThanks @DonManfed, I learned something new.
the "r" is missing; you should type @ + some letters and then select@DonManfed
Yes, it is necessary, unless there is a way to do exactly what was asked, that is, a kind of brush that goes to modify (blurring) what is underneath.@LucasMs
As the panel is swiped, recreate the rectangular mask (larger each time based on gesture coordinates) and redraw the masked image.
I meant that you can use the "suggestions", the list of names, instead of type the full name.Sorry @DonManfred, I will correct.
The difficult task, for me, is to be able to follow the movement of the panel.@LucasMs
As the panel is swiped, recreate the rectangular mask (larger each time based on gesture coordinates) and redraw the masked image.
Moving the panel with finger could maybe apply with my solution/code.@LucaMs
I got your name wrong too!
What I am thinking is this:
When the user touches the panel, a brush shape like a circle appears with the contents blurred.
As the user moves the finger the shape follows it.
When the finger is lifted the shape disappears.
Here I exaggerated a great deal; I know the masks (I use them with painting SWs).I still have to understand these and also masks (after about 40 year of programming... only )
Yes, this is right, since... my name is Mario (I wrote it on my old avatar but now it is roundend I had to remove the texts )@LucaMs
I got your name wrong too!
Have to go, now, but when I come back... I will try to understand this post and also try.@LucaMs
I got your name wrong too!
What I am thinking is this:
When the user touches the panel, a brush shape like a circle appears with the contents blurred.
As the user moves the finger the shape follows it.
When the finger is lifted the shape disappears.
Moving from A to B in one shot work without problems.I don't think you need to constantly redraw.
Just snapshot > blur > reposition should be enough as panels are kind of masked displays already.
when overlay panel is at 0,0 the blurred image is at 0,0 aswell.
if you move the overlay to 10,10 you move the inner blur image to -10,-10 and it will be at the same visual position inside the mask as before.