Nov 9, 2003 #1 R 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.
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.
Nov 9, 2003 #2 G Glawe Newcomer Joined Nov 5, 2003 Messages 3 Location Sweden Will this do ? [c#] ImageInformation imageInformation = TextureLoader.ImageInformationFromFile("mybitmap.bmp"); int height = imageInformation.Height; int width = imageInformation.Width;
Will this do ? [c#] ImageInformation imageInformation = TextureLoader.ImageInformationFromFile("mybitmap.bmp"); int height = imageInformation.Height; int width = imageInformation.Width;