Resource Center
Coding Samples
ImageGear is the industry standard for imaging application development. Building your application with our award-winning toolkits provides you with a powerful set of imaging libraries and image manipulation features and functions. Click on an imaging function link below to see how using ImageGear speeds your imaging development, enhance your image application, and provide solutions in multiple development environments.
ImageGear Coding Samples
Alignment
The alignment functionality defines where the image will be painted within the ImageGear display. The positioning is based on the Cartesian coordinate system. X represents the horizontal alignment while Y represents the vertical alignment.
Fit to... Functions
The fit to functionality defines how the image will appear within the ImageGear display. The positioning is based on four popular fit to functions: fit to window, fit to width, fit to height, and display actual size.
Orientation
Orientation allows a user to identify how an image is oriented before it is drawn on the output device. Typically orientation would be used to define an whether an image is printed in either a landscape or portrait mode. ImageGear support eight different orientations, and the following example shows how a portrait orientation would be achieved.
Loading Images
Loading images into a viewer is done in several ways in ImageGear. The most popular way to load an image is through a file dialog. The example below will explain how to open a file dialog and load the selected image into the viewer.
Panning
Panning functionality is used in conjunction with zooming features, and allows the user to move around the image without zooming out. Panning allows the user to click on a piece of the image and drag it around thus redrawing the image to its new location.
Printing
There are several methods available to print to a printer within ImageGear. Some methods are maximized for speed, while others methods deal directly with memory.
Rotating
Rotate functionality allows the image to pivot a certain number of degrees. 90 degrees places the image in its right side. 180 degrees turns the image upside down. 270 degrees places the image on its left side.
Zooming
Multiple standard methods exist for zooming on documents, and ImageGear supports most of these functions. Outlined in this section are the two most standard zooming functions.
