Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

Content Bounds of an Masked Image
Started by vonncc123 Feb 12 2015 10:04 PM

1 reply to this topic
contentbounds display object mask
This topic has been archived. This means that you cannot reply to this topic.
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Contributor

  • 236 posts
  • Corona SDK

It seems that even If I mask an image. Whenever I want to get its contentBounds, it still returns to me the whole image, like the mask was not implemented, any help will do.


Thanks in advance :)

[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Corona Geek

  • 7,594 posts
  • Corona SDK

Content bounds are rectangular and don't care about any masking details.  To the SDK, all images are rectangles.  


Having the SDK return a list of correctly wound vertexes encompassing the non-transparent portions of an image as displayed would be uber-expensive.


Can you post back with some usage cases for what you're trying to achieve?  Someone may have a good way to approach the problem.