Closed Amattia closed 5 years ago
this is not really a library specific question, but i will say that A) i would not use the drawing cache - that means you're going to create a bitmap of the entire tileview instance. you can use the draw
method to draw directly onto an appropriately sized bitmap (and maybe even just the one pixel you need), offset by scroll position, etc. beyond that, i know it's possible to read and manipulate pixel data, but you're going to have to override onDraw
or onDispatchDraw
(or better yet, use a Drawing plugin), and it's really outside the scope of functionality provided by this library.
hth, gl!
I need to develop a function that changes the pixel color of an image in real time, I currently wrote this part of the code that seems to work partially
I'm using a "TileView" library to show the user an image (I'm simplifying the explanation), in a certain part of the code I need to scan all the pixels of an image, and replace some (eg # f0f1f0 with the red).
Currently I can retrieve the pixel map and understand for each of them what color it is. What I can not do is change the image colors in real time. (The image that i save in a file is it correctly colored)
Is it possible do this ??