Wintermute Engine > WME sources discussion

entity image sizeX and sizeY

(1/1)

VEn0m:
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

Spellbreaker:
You can only get the height of an entity, like entity.Height.

Spellbreaker:
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 ;)

VEn0m:
Problem with .Height is that its work only with region. On image it returns a 0. Or maybe i just use it wrong :)

Navigation

[0] Message Index

Go to full version