LWJGL
May 22, 2013, 18:15:57 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.0 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Premultiplied Alpha Image Converter  (Read 1593 times)
CodeBunny
Nerdus Imperius
*****
Posts: 561



WWW
« on: May 08, 2011, 06:16:48 »

Does anyone know where I can get a free premultiplied alpha image converter?
Logged
broumbroum
Prolific Timewaster
****
Posts: 316



WWW
« Reply #1 on: May 08, 2011, 13:34:42 »

Hi,
I've got an Image Multi-Converter Ant that does batch conversion. But it is by default not enabled for premultiplied alpha (BufferedImage.TYPE_4BYTE_BGR_PRE is it?). You can download it from sf.net project sf3jswing . This is the source code. either open it with Netbeans or build it by command line.
 
You must have downloaded JIGAXtended and JXAKernel, both are the api, you build jxakernel first (from jxakernel directory or netbeans) :
shell : ant DO-lib


do edit jigaxtended/resources/properties/all/net/sf/jiga/xtended/impl/ImcBrowser.properties and change the lines to add _PREmultiplied alpha :

ImageReader6 = image/x-png
ImageReader6_class_r = com.sun.imageio.plugins.png.PNGImageReader
ImageReader6_class_w = com.sun.imageio.plugins.png.PNGImageWriter
ImageReader6_rw = rw
ImageReader6_ext = png
ImageReader6_desc = Portable Network Graphics
ImageReader6_type = TYPE_4BYTE_ABGR_PRE


then copy JXAkernel/dist/Windows/unsigned/lib/lib-.....jar to JIGAXtended/lib/Windows/x86 and build :
shell : ant DO-jar-extension
copy JIGAXtended/dist/Windows/extension/....jar to imagemulticonverter-ant/resources/Windows/x86 and build :
shell : ant install

then you can run imagemulticonverter from the dist/applet directory and convert to image/x-png files using 4byte premultiplied alpha output format. Cool


(you can build for other arch like 64 bits (amd64) or Mac or Linux, too)
Logged

Sf3JSwing project, code repo (Apache License) -  http://www.sourceforge.net/p/sf3jswing
Sf3jswing Project Forum - http://apps.sourceforge.net/phpbb/sf3jswing/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!