Hello all. I have come to a crossroad. I am working on a script right now that will take a bitmap and enlarge it to be twice as big. I'm just doing a simple 2x method. This is the basics of it...
for every x and y coordinate(so one pixel) the new bitmap will represent that as four pixels(2x2). The four coordinates are (2x,2y), (2x+1,2y), (2x,2y+1), (2x+1,2y+1).
My problem is that it takes too long to compute a large bitmap and I'm trying to figure out a way that is efficient to filter the bitmap like this while not lagging the game to death. The main problem is that I am doing this constantly(every Graphics update). If anyone has any ideas please let me know. I'll post anything I come up with in case anyone else tries to do this.
for every x and y coordinate(so one pixel) the new bitmap will represent that as four pixels(2x2). The four coordinates are (2x,2y), (2x+1,2y), (2x,2y+1), (2x+1,2y+1).
My problem is that it takes too long to compute a large bitmap and I'm trying to figure out a way that is efficient to filter the bitmap like this while not lagging the game to death. The main problem is that I am doing this constantly(every Graphics update). If anyone has any ideas please let me know. I'll post anything I come up with in case anyone else tries to do this.