BennyKok / PxerStudio

Android open source pixel drawing tool
Apache License 2.0
93 stars 16 forks source link

Create brush size #4

Open DmytroTsurkan opened 3 years ago

DmytroTsurkan commented 3 years ago

In this project picBoundary.set(0, 0, pxerSize * picWidth , pxerSize * picHeight ); - like a pixel is the brush. When we scale this picBoundary like (pxerSize picWidth 2 , pxerSize picHeight 2) the brush will scale too. But all pixels draw again and scale. Have some idea?

BennyKok commented 3 years ago

I am not sure if I understand correctly, did you mean you want to create a different brush size for the normal drawing tool?

DmytroTsurkan commented 3 years ago

Yes, you understand right. I want create different brush size, like 2x2 pixels or 3x3. And changes it dinamicaly in seek bar.

BennyKok commented 3 years ago

I think I did something similar for the eraser tool, which erases a brush of pixel at a time, I think you can look around that code maybe its easily convertible

enxio27 commented 3 years ago

Need to return the default size for the eraser to 1x1 pixel, and give the user a way to set the size.

enxio27 commented 3 years ago

Need to return the default size for the eraser to 1x1 pixel, and give the user a way to set the size.

Do I need to open this as a new issue? The default for the eraser needs to be changed back to 1x1 pixel. I don't have the ability to change the code and recompile it.

BennyKok commented 3 years ago

@enxio27 it's fine to keep it here, think we can consider changing the brush size as a similar features

Need to return the default size for the eraser to 1x1 pixel, and give the user a way to set the size.

Do I need to open this as a new issue? The default for the eraser needs to be changed back to 1x1 pixel. I don't have the ability to change the code and recompile it.