Android Question make a scratch

Douglas Farias

Expert
Licensed User
http://data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxQTEhQUExQWFRUVFRsaFxgYGBcaGBwYIR4cGh0YFxwaHCggHx0lHRoaIjEhJikuLi4uHB8zODMsNygtLisBCgoKDg0OGxAQGzckICYsNDQsMiwsLCwsLC8sLCwsLDAsLCwsLDQsLCwsLCwsLCwsLDQsLCwsLCwsLCwsLCwsLP/AABEIASIArgMBIgACEQEDEQH/xAAcAAEAAgMBAQEAAAAAAAAAAAAABQYDBAcCAQj/xAA8EAACAQIEBAQEBAUDAwUAAAABAhEAAwQSITEFBkFREyJhgQcycZFCobHBFCNS0fBi4fFDcpIVMzSCwv/EABoBAQADAQEBAAAAAAAAAAAAAAACAwQBBQb/xAAtEQACAgICAQIEBgIDAAAAAAAAAQIRAyEEEjEiQRNRsfAFYXGRodFC4SMyUv/aAAwDAQACEQMRAD8A6TUDznzPb4fhzdcZnJy20mCzfso3J/cip0n3rgV3ENxfi628U3gIHZBbaQVVZ/ljp4jEQT3+gFAdU5C5kv4+2165YSzamEIZiXIOpEgeUbT3+lWqsWGw620W2ihURQqqNgBoAKyigKnzxz1Z4eApXxb7CVtgxC/1OYMDsIk/nXPbfxmxWeWsWCn9Izhv/LMR+VV7jqDGcSxYu31tXGvlLedWKEhxbVXZZKAKN4O3TcT/ADFwt+X81tCmIfF2WRrrW/Ils6FEUk+cnWSYiNNTQHUOTubbPELRe3KukC5bYjMpOxnqp6H9Knya/PvwcxDLxO2oMC4jqw7gKWH5qK6z8UMa1rhmIZNCwVJ9GYKfyJoCp8z/ABgFu41vB2luBdPFcnKT/pUQSPUkT2rV4F8ZWzhcXYTITq9rMCvrkYmfvUf8OjiDhlTD27t0tcxZKW7psmVs4cozMN4YwF6lql+b+EYzDYMjE37l7xeHl3V2zKl9cRYkDsQlwL7NQHVMNiFuIrowZHUMrDYg6gitLj3GreEteJckyQqIol3c7Kg7/pVU+C2IZuHQxkJed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61mqPI5Ty6WkX4OJHFvyxSlKyGsUpSgFKUoBSlKAUpSgFKUoBSlKAUpSgFcV5yRkxd5SmZ7jloAaSCYTfrEAETtHSK7VWticBauMrPbRmT5WZQWXrodxrrVmOfR2V5IdlRSOCclm6FuYk6lVIygA5YnKwjQ6x6D10F8sWVRQqAKqiABoAPSslK7lyvI7ZzFi6IUpSqi0UpSgFKUoBSlKAUpSgFKUoBSlKAUpSgFKUoBSlKAUpSgFKUoBSlKAUpSgFKUoBSlKAUpSgFKUoD//2Q==



someone can give me a sugestion to make this?

user need scratch to find the prize *-*

i remember have this tutorial in many time ago on the forum but i dont find this *-*
 
Last edited:

Douglas Farias

Expert
Licensed User
ty here is the project if help someone

erel 1 question its possible know how much % of my image view is visible?

exemple if user scratch 80% show a msgbox
msgbox("Well done!","test")
 

Attachments

thedesolatesoul

Expert
Licensed User
Calculate how many "Pixel" the image have in total.
Check each pixel if it is a transparent one.
With a little bit algebra you should be able to calculate how many % is transparent.
But it will be very slow.
To optimize maybe check 1 out of 4 pixels or so. (As smudging would imply spatial correspondence)
 

DonManfred

Expert
Licensed User
I wanted to give an answer (not a solution) which should give an nearly correct value.

I dont know how much time it will take on an canvas-image. I do not work much with images. Especially on android.

To check just one out of four sounds like a reasonable value. It should be ok for such an "issue" here.
 

DonManfred

Expert
Licensed User
But it will be very slow.
I have tried it but i feel it not to be "very slow"?


My testproject is based on the signaturecapture example...

In short the code is
B4X:
    Dim p() As Int
    p = getPixels(SD.Canvas.Bitmap, 0, 0, 0, 0, SD.Canvas.Bitmap.Width, SD.Canvas.Bitmap.Height)
    'Log("SizeOf(p)="&p.Length)
    Dim MaxPixels As Long = p.Length
    Dim TransPixels As Long = 0

    For Each pdummy As Int In p
        Dim alpha As Int = Bit.UnsignedShiftRight(Bit.AND(pdummy, 0xff000000), 24)
        If alpha = 0 Then
            TransPixels = TransPixels +1
        End If
    Next
    Dim found As Float = (TransPixels/MaxPixels)*100
    Log("Scratched= "&NumberFormat(found,0,0)&"%")
i have uses this in sub Panel1_Touch to get the %
 

Attachments

Top