Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Bitmap:getTextureRegion() — Gideros Forum

Bitmap:getTextureRegion()

antixantix Member
edited March 2016 in Suggestions & requests
Hey all. Do you think it would be neat to have a function to get a Bitmap objects TextureRegion? I do. It seems that getTextureRegion() is only valid for TexturePacks (which I tend to avoid).

Currently if you want to modify a Bitmaps TextureRegion you either have to use TextureRegion.new() or save a pointer to the original TextureRegion instance when creating the bitmap (bitmap.region = region) so you can then use setRegion()

It seems that the only use for setRegion() is is you bothered to save a pointer to the TextureRegion yourself.

Comments

Sign In or Register to comment.