PNG files not created using createScreenShot and writeImage

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
asparagusx
Posts: 81
Joined: Thu Oct 16, 2008 6:50 am

PNG files not created using createScreenShot and writeImage

Post by asparagusx »

Using Irrlicht 1.4.2

Code as follows :

Code: Select all

	IImage* image = Device.driver->createScreenShot();
	
	if (image)
		{
		Device.driver->writeImageToFile(image, "c:\\images\\dump.jpeg");
		Device.driver->writeImageToFile(image, "c:\\images\\dump.png");
		Device.driver->writeImageToFile(image, "c:\\images\\dump.bmp");
		Device.driver->writeImageToFile(image, "c:\\images\\dump.tga");
		Device.driver->writeImageToFile(image, "c:\\images\\dump.jpg");
		image->drop();
		}
All the images are created/written correctly, EXCEPT the PNG file. The PNG file is created, but the contents is not correct. Was using DirectX 9 driver.

Anton
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

works for me as expected !!!
using Irrlicht v1.4.2 with DX9 and OGL... ;)
compiled with MinGW/GCC...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

I can see the problem (I get a black image) on 1.4.2 / DX9 / MSVC++ 8.0.

It works fine on the SVN trunk, so we should be able to sort it for 1.4.3. I'll look into it in detail later. Thanks for the report!
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, indeed. However, it doesn't seem to be just the alpha value, which was my first thought. :?
asparagusx
Posts: 81
Joined: Thu Oct 16, 2008 6:50 am

Post by asparagusx »

Just a point of clarification please - is the SVN trunk going to be 1.4.3 or will that be 1.5?
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

(As I understand it!) 1.5 will be taken from the SVN trunk. There's a 1.4 branch going as well, from which 1.4.3 will be cut. That's just getting bugfixes.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply