Pixelation by Italo lost : alternatives

In canvas’ FAQ there is also Selection Tool on images and Pixelate filter by Italo , but the code images and videos are now lost . Has anyone alternatives or has anyone the example avaliable even after so much time ? Thanks in advice

P.S. : This community is a bit different from when I entered last time

Have reached out to @Italo in the hope he can find the blocks.

1 Like

Thanks to everyone , is solved

Sorry , last question in this topic …

I’ve a bit changed the code to pixelate all the image and not a selected part . But something doesn’t work well because in images with transparent background where was transparent is black ( Well , maybe this is not even an error ) but also it doesn’t pixelate all the image but lets some pieces filled with semi-transaprent color …

Here are the blocks . Thanks in advance

If you want to remove the transparency ( alfa channel ) you can use something like this ( the color is a 32 bit integer with format AARRGGBB ):

Based upon my tests with images with transparency, getPixelBackgroundColor seems to set the found colour to 0 or to 16777215 - which results in BLACK.

Using an if/else/then blocks to replace either of these with makeColor 255,255,255,0 seems to fix things.

I also found that where an image may have colours that are semi transparent it is difficult to see these show up when placed above the base image. I built a list of the x,y,colour coordinates, then removed the base image and then set the pixelated image.

Will provide blocks when the code server comes back online :smiley:

pixelationCanvas2.aia (106.3 KB)

Big thanks to everyone , now it works well ! I used the same code I’ve shown in post 6 but modified with your suggestion , thanks ! I didn’t said it before but …

My stage is a square , and the method pixelates everything apart the last x column ( in the example is the red part )

Thanks anywhere and in advance

Check your canvas width is divisible by your pixel size

Yes it is . Width is 100 pixel and pixelation size is 10 . I tried to modify the “ for each x “ section changing “ to “ to stage’s width plus 10 , but the result it gives me at that column just white pixels , for any image

Share your image here, I could have a play.

Community_version.aia (1.6 MB)
There's not a real sample image but here is the project

I cannot help without you providing a sample image

Do you mean a screenshot ?

No, upload the image that you were testing that caused the red bar on the right.

Sorry , that was an image I made in Paint and I used to explain what the procedure is not pixelating ( the " red part " ) . Now , with a method I recently discovered , pixelates also the " red part " , but allways with white color ...
P.S. : Wow , this " My saved apps " on companion function is very useful ! So now we don't have even to install it ! Was it inserted because of the new android limitations ?

Anyway this is not important now . Is not a big problem so it's solved

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.