Using BufferedImage and ImageIO classes in my Android Activity -


I am developing an Android app that can improve the gamma of any image stored in the phone. My activity can get image position, but I can not use the BufferedImage class and ImageIO class in my application.

I get the following error in eclipse. IDE with ADT plugin.

  ImageIO can not be resolved BufferedImage can not be resolved  < / Pre> 

I can not process the image I have an idea of ​​including the Java Library but I do not know how to do it in Android

This is the function I need to work it is.

  Personal Static Buffer Image Gamma Correction (Buffer Image Original, Double Gamma) {Intimate Alpha, Red, Green, Blue; Int NewPixel; Double gamma_nuvi = 1 / gamma; Int [] gamma_LUT = gamma_lut (gamma_new); Buffer image gamma_k = new buffard image (original.getwidth), original. Gatehight (), origin. Gettype ()); For (int i = 0; i & lt; original.getWidth (); i ++) {for (int j = 0; j & lt; original.getHeight (); j ++) {// received by R Pixels, g, b alpha = new colors (original .get rgbb (i, j)). GetAlpha (); Red = new color (original .get rgb (i, j)). GetRed (); Green = new color (original .get rgb (i, j)). GetGreen (); Blue = new color (original .get rgb (i, j)). GetBlue (); Red = gamma_lat [red]; Green = gammm_lat [green]; Blue = gamma_lat [blue]; // Return to original format newPixel = colorToRGB (alpha, red, green, blue); // pixel type image in gamma_cor.setRGB (i, j, newpixel); }} Return gamma_cor; Android Art Java is not standing - it lacks some sections - not only the ADT    

There

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -