Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

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

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

vonncc123

[GLOBAL: userInfoPane.html]
vonncc123
  • 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]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • 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.




[topic_controls]
[/topic_controls]