Hi I'm loading an imageset that uses a png file. I'm using it as a sprite essentially so I don't want it drawn as a simple square. The png has transparency turned on. the png shows up with the correct transparency in photoshop.
I call Image::draw()
the image appears but rather than the area marked transparent being see through it is white. Do I need to do something other than call Image::draw to get it to work correctly?
png transparency not working?
Moderators: CEGUI MVP, CEGUI Team
Transparency doesn't seem to work with gifs either.
Here is a simple example:
The cursor becomes a white block with the image. Do I need to call something else?
Here is a simple example:
Code: Select all
CEGUI::Imageset* unitImages=CEGUI::ImagesetManager::getSingleton().createImageset("units.imageset");
MouseCursor::getSingleton().setImage("units","cursor");
The cursor becomes a white block with the image. Do I need to call something else?
Ok, it's sure that it is the png file. This picture works for me.
PNG and Transparent
I have the same problem. Does anyone have any ideas?? I have also tried the suggestion from this thread.
[url]http://www.cegui.org.uk/phpBB2/viewtopic.php?t=1814&highlight=png+transparent
[/url]
[url]http://www.cegui.org.uk/phpBB2/viewtopic.php?t=1814&highlight=png+transparent
[/url]
Who is online
Users browsing this forum: No registered users and 17 guests