- Home /
 
               Question by 
               ina · Aug 17, 2011 at 12:37 AM · 
                texture2dimagewwwdimensions  
              
 
              Detect WWW Image bitmap dimensions?
Is it possible to detect the dimensions of an image loaded through WWW?
               Comment
              
 
               
              Answer by Waz · Aug 17, 2011 at 12:38 AM
The image is a Texture2D, which has width and height properties.
Answer by mgear · Aug 17, 2011 at 12:41 AM
texture width/height should work.
Tested with this c# example, gives 320x240: http://unity3d.com/support/documentation/ScriptReference/WWW.html
print("Size is " + www.texture.width + " by " + www.texture.height);
Your answer
 
 
             Follow this Question
Related Questions
How to load an image at runtime via WWW correctly 1 Answer
Finding size of images imported at runtime 2 Answers
!texture.texture error 0 Answers
Image is not loading into Texture 0 Answers
How do you download image to UI.Image? 4 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                