java - Image pixel manipulation: Use native APIs or 3rd party libraries? -


i need write application in java need able manipulate pixels of image regardless of format of image (jpeg, bitmap, gif, ...).

it means need access pixels , need calculate attributes of image such size, resolution, contrast, brightness , compression algorithm.

i need manipulate bits of individual pixels. need know can these means of pure java se classes or need use third party library? if so, best me? jai, imagej, ...?

take @ java advanced imagining api faq , should able decide whether want use native java apis or 3rd-party library. (the concept of manipulating pixels can vary tremendously in complexity. examples mentioned not difficult other operations may be.) getting size, resolution , compression alg trivial attributes of objects use in image manipulation. (though resolution relative.) working contrast , brightness little more involved not much. see here interesting sample. java2s has lots of java image-manipulation snippets available .

here's link directly supported file formats section in faq.

jai hello world:

planarimage source = jai.create("fileload", file); 

this function automatically determines file format , produces image object can displayed or processed.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -