therealbluepandabear
02/04/2022, 4:26 AMdrawLine()
?
I have a pixel art editor (made with Bitmap
and written 100% in Kotlin) and I want to give the user the option to enable grid lines, but using drawLine()
is not performant at all, and I've been trying to find a better alternative for some time now.
Not to mention it's also verbose and for larger canvases it is not performant.
I've spoken to a couple of people who have created a pixel art editor for Windows and they say that most platforms have a custom grid-drawing implementation for Bitmap
which is lightweight and easy to use, but I so far haven't found one in Android.
I also haven't found any library on GitHub which assists in this.
I understand this is a niche question - since most people haven't created a pixel art editor/have experience in this space - but if anyone has any info/leads please let me know; it's mostly an app for a school project (and will be on the Play Store in the future), and I want it to function perfectly 😄
Cheers 🙏🏻,
thebluepandabeardarkmoon_uk
02/04/2022, 10:01 AMdarkmoon_uk
02/04/2022, 10:02 AMdrawLine
and a shader for efficiency; might be to do the same computation while initialising a pixel data array, then set this to a background image in your workspace.darkmoon_uk
02/04/2022, 10:04 AMtherealbluepandabear
02/04/2022, 10:35 AMdarkmoon_uk
02/04/2022, 12:58 PMdarkmoon_uk
02/04/2022, 12:59 PMtherealbluepandabear
02/04/2022, 1:10 PMtherealbluepandabear
02/04/2022, 1:15 PMtherealbluepandabear
02/04/2022, 2:29 PM