[v2] Ogre::Image2 scale

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
Lax
Hobgoblin
Posts: 583
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 50

[v2] Ogre::Image2 scale

Post by Lax »

Hi,

I have an original Ogre::Image2 of 64x64 pixel image in it. I want to scale a copy of it to e.g. 128x128.
How is this possible? I only see, that scaling needs a pixelMap. Is there not an easier way?

Best Regards
Lax

http://www.lukas-kalinowski.com/Homepage/?page_id=1631
Please support Second Earth Technic Base built of Lego bricks for Lego ideas: https://ideas.lego.com/projects/81b9bd1 ... b97b79be62

przemir
Halfling
Posts: 68
Joined: Sun May 11, 2014 7:55 pm
Location: Poland
x 21

Re: [v2] Ogre::Image2 scale

Post by przemir »

Hi,

What about Ogre::Image2::resize method?
Lax
Hobgoblin
Posts: 583
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 50

Re: [v2] Ogre::Image2 scale

Post by Lax »

Hi,

thanks, I was so concentrated on the scale method, that I did not see, that there is a different one!

Best Regards
Lax

http://www.lukas-kalinowski.com/Homepage/?page_id=1631
Please support Second Earth Technic Base built of Lego bricks for Lego ideas: https://ideas.lego.com/projects/81b9bd1 ... b97b79be62

Post Reply