Image size problems
by Ryan Mick · in Torque Game Engine · 02/20/2006 (11:40 am) · 4 replies
I have a PNG image that is 50 X 100. When the engine loads this image, it reports it as 64 X 118. Does anyone know why the engine is reporting the image larger than it actually is? I have a routine that is cutting the image up and this is playing havoc with it.
Thanks
Thanks
#2
02/20/2006 (12:03 pm)
I'm using stock TGE 1.4, and the engine is reporting the wrong size when it loads the image before my routine has a chance to touch it.
#3
02/20/2006 (4:47 pm)
Ok, I figured it out. It seems that when I was getting the GBitmap object it was pulling from the profile and not my image. Strange how the texture handle returned the name of my image but mTextureHandle.getBitmap() returned from the profile. Oh well, a couple more things to finish and then a suprise for everyone.
#4
02/22/2006 (7:45 am)
Well, i'm still waiting on the "suprise" to get approved but here is a link to it GuiImgHealthBarHud.
Torque Owner Stefan Lundmark