Image Quality

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
Defx2

Image Quality

Post by Defx2 »

I have an Image in the background of my gui (jpg 210x220px).

This is my Code:

IGUIImage* img = env->addImage(rect<int>(10,10,220,230));
img->setImage(driver->getTexture("media/texturen/logobig.jpg"));

Why have this image so bad Quality ? It looks like an scaled small picture, totally not sharp?

Sorry for my English.
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Since you didn't post a screenshot...

I'm guessing it has to do with the problem loading 32bit textures.

http://irrlicht.sourceforge.net/phpBB2/ ... .php?t=932
Crud, how do I do this again?
Defx2

Post by Defx2 »

I think this can not be the problem.

here is an Screenshot: Image[/img]
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

If you change the size of your image to a power of two size, quality will be better. E.g. 64x64, 128x128, 256x256 and so on.
Defx2

Post by Defx2 »

Cool. This was the Problem.
Post Reply