|
Java™ by example!
|
|
|
How do I darken an image?
 To darken an image, you can use the class LookupOp. This class works with one or more tables that will be applied to the color values of the pixels. To darken n RGB image, the RGB values have to be decreased (lower values means darker). The lookup table reflects these changes. The following example shows the original image and an image that has been darkened by dividing the intensities by 2. Main.java:
Image used:
 To learn more about image processing, check out this expensive but excellent book:

Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|