Anti-aliasing causing issues on Android

Hi

I am am having problems with anti-aliased graphics on Android. Lots of the resources i am using have anti-aliased assets around the edge using transparency. These all look fine on the emulator and iOS, but on android the transparency appears as a black line, this is real problem for assets that are supposed to blend into their background,making them stand out, any solution without recutting all the assets ?

thanks

Neil [import]uid: 77943 topic_id: 20384 reply_id: 320384[/import]

I incidentally found out just now that adding a rectangle over the whole image in additive blend mode mitigates the unsightly lines. I will have to do some more testing later to see exactly how well that works though. I was changing the color, but I wonder if you could just set the alpha of the rectangle very low and it would still work. [import]uid: 62193 topic_id: 20384 reply_id: 79713[/import]

I just checked and it works to get rid of those lines. Here is the code:

local myRectangle = display.newRect(0,0,display.contentWidth,display.contentHeight)  
myRectangle:setFillColor(0, 1, 0)  
myRectangle.blendMode = "add"  

It imperceptibly alters the image in terms of color, but completely gets rid of the lines with ONE caveat: it doesn’t work on sprites/images you have scaled. [import]uid: 62193 topic_id: 20384 reply_id: 79910[/import]

Thanks for the reply.

Your work around may work for some but a lot of my images I am using are irregular i.e not square, some are animations and some are also scaled, so don’t think it will be much help.

Anyone else found a solution to this that might work in all cases ?

thanks [import]uid: 77943 topic_id: 20384 reply_id: 80618[/import]