Scaling Images (nicely)

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
CiderSubmarine
Posts: 5
Joined: Tue May 05, 2009 8:19 am

Scaling Images (nicely)

Post by CiderSubmarine »

I know how to resize images but does anyone have a technique that scales/samples them more "gracefully". Resizing produces very pixelated and poor results.

I can resample images using GraphicsMagick but I don't know how to pass the BLOB to Irrlicht without saving to the file system.

Any help or examples much appreciated!
Ion Dune
Posts: 453
Joined: Mon Nov 12, 2007 8:29 pm
Location: California, USA
Contact:

Post by Ion Dune »

Assuming that GraphicsMagick isn't open source and you can't just implement its algorithm into Irrlicht, I don't think such functionality currently exists. Perhaps you should see if there is some method for extracting raw image data from GraphicsMagick and passing it into an Irrlicht image. Search these forums for code on generating a texture from raw image data.
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post by FuzzYspo0N »

Just read the documentation, the ITexture and IImage classes have a lot of information on creating a texture from memory. image data coming from anywhere -> memory -> ITexture -> screen is easily doable.
Post Reply