It looks like you're new here. If you want to get involved, click one of these buttons!
-- CASE 1 local texture = Texture.new("image.png", true) local bitmap1 = Bitmap.new(texture) stage:addChild(bitmap1) -- CASE 2 local texturePack = TexturePack.new("myTexturePack.txt", "myTexturePack.txt.png") local region = texturePack:getTextureRegion(...) local bitmap2 = Bitmap.new(region) stage:addChild(bitmap2) |
Likes: Daimyo21
Comments
just add true for last argument
http://www.nightspade.com
thanks for the quick help!
Well I would need confirmation (it looks undocumented) because it doesn't seem to work on my end, the parameter doesn't change anything?
With a confirmation I could know if the problem comes from the resolution of my images themselves (which I thought was unlikely) or somewhere else.
This is a snippet of my code in production:
If you are working on Gideros Player, try to set zoom to 100% to see filter effect. I just test it again and filter works as expected (if false it will jagged)
http://www.nightspade.com
@Mells if you look at documentation's constructor of TexturePack:
http://docs.giderosmobile.com/reference/gideros/TexturePack/new#TexturePack.new
You will see filtering as one of the parameters, filtering is exactly what you want
Thank you!
No idea where my head is these days. I *was* looking at the docs and didn't see it.
Too much coding for a non-coder at 1am and this is what you get
The result is not nice though, the problem must be coming from something else.
Another day.