Home
Categories
Dictionary
Download
Project Details
Changes Log
FAQ
License

awt



The awt and image packages contains additional classes which work with the Java awt and image packages.

The geom package classes are not under the org.mdiutil.awt package for historical reasons but they are dealing with classes in the geom package.

DeltaEDistance

The DeltaEDistance class allows to compute the distance between two, colors using the CIELAB ΔE* distance.

ImageColorAverager

Main Article: ImageColorAverager

The ImageColorAverager class allows to compute the average color around a pixel in an image.

ImagesComparator

Main Article: ImagesComparator

The ImagesComparator class allows to compare two images.

Example

To compare two image files to check for strict equality:
   URL fileA = ...
   URL fileB = ...      
   ImagesComparator comparator = new ImagesComparator();
   ImagesComparator.Result result = comparator.compareImages(fileA, fileB);
   boolean isEqual = result.isEquals(); // true if the two images are strictly equal

Categories: Awt | Awt.image | Packages

Copyright 2006-2024 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences