Package net.sourceforge.jiu.codecs

Examples of net.sourceforge.jiu.codecs.PNGCodec


    graphics.setColor(Color.WHITE);
    graphics.drawString("Hello World!", 5, 15);
    // conversion AWT image to JIU image
    RGB24Image jiuImage = ImageCreator.convertImageToRGB24Image(awtImage);
    // saving JIU image to file
    PNGCodec codec = new PNGCodec();
    codec.setImage(jiuImage);
    codec.appendComment("Hello World! as a text comment; " +
      "see http://schmidt.devlib.org/jiu/introduction.html");
    codec.setFile("jiu-hello-world.png", CodecMode.SAVE);
    codec.process();
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.jiu.codecs.PNGCodec

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.