IM4Java Convert to 32 bit PNG

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jsnreddy
Posts: 1
Joined: 2015-10-22T13:56:49-07:00
Authentication code: 1151

IM4Java Convert to 32 bit PNG

Post by jsnreddy »

I am able to convert from 8 bit png to 32 bit png using the following command

convert 8BIT.png png32:32BIT.png

I need to write java code using IM4java. I have the following code but was not sure how to set the png32 indicator in the IMOperations.

Code: Select all

IMOperation op = new IMOperation();
				op.addImage();
                                 //What to add here to make it 32 bit png?? 
                                op.addImage();
convert.run(op,sourceFile,destFile);
Post Reply