A few words talk about JAI

zhaozj2021-02-16  92

Java advanced imaging has not been used, or you will use it, you want to first understand it, you can take a look at my experience.

Planarimage Source = JAI.CREATE ("FileLoad", File; the above is the simplest Load graphic file method, which can support a lot of file format: BMP, GIF, JPEG, and a graphics format in the mobile phone also supports . Its efficiency is quite good.

Its objects have inherited things in JDK in the JDK, so if it is Linux, or Solaries, make sure to install the XF86, as if you only need to use the XF86's * .so file can.

How to use it in its Demo is already very detailed, just need Copy, you can use it. If you need to go into your app, you need to read the relevant documentation carefully, and learn about it.

What is most needed in use is that you read the color bits of the graphics, when making graphic conversion, for 32-bit colors, and single-channel graphics files require self-conversion.

JAI is very flexible, it can read graphic files from stream, file, can also make pictures in air, existing built-in graphic scaling, rotation method, can also personally fleate themselves.

Http://java.sun.com/products/java-media/jai/reference/docs/index.html has JAI various documentation

If you have any experiences in JAI, you can communicate with me.

转载请注明原文地址:https://www.9cbs.com/read-14740.html

New Post(0)