It's urgent - Image Drawing
Posted: Mon Jun 06, 2005 11:05
Hi All,
I have one basic query regarding image drawing. I am using defineImage function of image set class to define image and draw function of Image class for drawing the image.
1) If i give size of the image same as actual image size it draws the proper image.
2) but If i give size smaller then the actual image size, then imgae cuts down. i.e. it picks up specified no of pixels from the image.
3) and if i give size greater then the actual image size then it fills the remaining area of image with white space.
but i want to Stretch and compress the image according to given size of the image. Is their any method in CEGUI or OGRE to support image Comression and Stretch so that when i will define the image with different sizes then application shows the complete image.
i am waiting for response. it's really very urgent. i am not able to proceed without solving this problem.
Thanks,
Parul
I have one basic query regarding image drawing. I am using defineImage function of image set class to define image and draw function of Image class for drawing the image.
1) If i give size of the image same as actual image size it draws the proper image.
2) but If i give size smaller then the actual image size, then imgae cuts down. i.e. it picks up specified no of pixels from the image.
3) and if i give size greater then the actual image size then it fills the remaining area of image with white space.
but i want to Stretch and compress the image according to given size of the image. Is their any method in CEGUI or OGRE to support image Comression and Stretch so that when i will define the image with different sizes then application shows the complete image.
i am waiting for response. it's really very urgent. i am not able to proceed without solving this problem.
Thanks,
Parul