Increase Brightness and Contrast of image after capturing from camera in Android
I am making a one application in which I capture an image from camera and make the pdf out of it.
But the quality of image is poor. So I want to set the brightness and contrast of the image.
Is there any way to increase Brightness and Contrast of image after captu开发者_如何学运维ring from camera in Android?
After capturing the image when I cropped it and then display it in pdf, the lower part of the image has been cut.
For pdf usage in this application I have used iText.jar (5.0.6).
For having the full image displayed in the pdf generated, please try by applying 'scaleAbsolute' to the image.
File newFile = new File(pdfPath);
newFile.createNewFile();
FileOutputStream pdfFile = new FileOutputStream(newFile);
Document document = new Document();
PdfWriter.getInstance(document, pdfFile);
ocument.open();
Rectangle rectangle = document.getPageSize();
Image image = Image.getInstance(imagePath);
image.scaleAbsolute((rectangle.getWidth() - 75.0f),
(rectangle.getHeight() - 75.0f));
精彩评论