Original size of texture loaded with .TextureLoader

Rosecroix

Newcomer
Joined
Nov 3, 2003
Messages
8
Location
Sweden
Does anyone know how to find out the X and Y size of the .bmp file used for a texture?

I need both the X and Y and also to compute the relationship.
 
Will this do ?

[c#]
ImageInformation imageInformation = TextureLoader.ImageInformationFromFile("mybitmap.bmp");
int height = imageInformation.Height;
int width = imageInformation.Width;
 
Back
Top