ImageGear for Java User Guide > Using ImageGear for Java > Architecture |
The ImageGear for Java library is logically divided into five major parts, encapsulated into following packages a Core, Processing, Formats, Display and extensions. An example of their relationship is shown in the following diagram:
com.accusoft.imagegear.core package is the basis of ImageGear for Java toolkit. This package contains classes to operate with graphics primitives, to license product, and most importantly, primary ImageGear entities like page and document. Page is implemented in the ImGearPage Class and represents an image in memory. It contains image attributes, pixels, and offers functions for basic operating like access to stored pixels or metadata assignment.
Since the most persistent form of storage for images is files, ImageGear offers the ImGearFileFormats Class, located in com.accusoft.imagegear.formats package, to handle them. Using this class, it is possible to load and store single pages from local and network files, obtain properties like width and height without loading an entire image, and operate with multi-image documents (ImGearDocument Class) like TIFF. The toolkit also contains classes like ImGearLoadOptions Class and interfaces like the ImGearControlParameter Class to control image loading and saving processes (including saving the format and its characteristics).
Once an image (in its representation as ImGearPage Class) is created or obtained from a file or scanner, it is possible to process it using the ImGearProcessing Class. It defines a series of members that can be applied to any ImGearPage Class instance. Adjusting brightness/contrast, flipping, inverting, rotating and other operations are available for developers. Additionally, an export to managed BufferedImage class is also available through ImGearProcessing Class.
The ImGearPageDisplay Class serves to represent an image on the computer's screen. It is a member of the com.accusoft.imagegear.display package and allows drawing the attached ImGearPage Class onto a Windows Form with an impressive variety of options.
If your application requires additional ImageGear functionality, you can simply interact directly with ImageGear.