Wintermute Engine Forum

Wintermute Engine => Technical forum => WME sources discussion => Topic started by: VEn0m on August 24, 2012, 05:06:52 PM

Title: entity image sizeX and sizeY
Post by: VEn0m on August 24, 2012, 05:06:52 PM
Hello!!! I know there is no way to get size of entity image. So.. my question is next : is that posible to get image size by editing  GetBoundingRect and adding it to entity?  ::slug
Title: Re: entity image sizeX and sizeY
Post by: Spellbreaker on August 24, 2012, 06:37:50 PM
You can only get the height of an entity, like entity.Height.
Title: Re: entity image sizeX and sizeY
Post by: Spellbreaker on August 24, 2012, 06:50:52 PM
Sorry I did not see that this question is in the sources discussion :) But it should be a question to Mnemonic, since it should not be a problem to add a .Width , since .Height already exists ;)
Title: Re: entity image sizeX and sizeY
Post by: VEn0m on August 24, 2012, 07:09:22 PM
Problem with .Height is that its work only with region. On image it returns a 0. Or maybe i just use it wrong :)