Image Processing Toolkit ImagXpress: How to process image merged images

ImagXpress is the most advanced color image and photo image processing toolkit. It is released in the form of .NET controls, COM components, and VC components. With ImagXpress, developers can build applications that support image browsing, editing, printing, TWAIN scanning, file format conversion, and more. ImagXpress provides a comprehensive image processing function set, supports more than 30 file formats, and has an amazing image processing speed. The image functions provided by ImagXpress include: copy, rotate, maintain image transparency, multiple image scaling algorithms, advanced scroll bars, automatic resizing and image fusion, etc.

Click to download the official version of ImagXpress

Merging is the operation of merging the image currently being processed (ProcessImageID) with another image. The resulting merged image is stored in ProcessImageID.

Combine images:

Invoke the merge method.
Use Picture, Filename, hdib properties or LoadBlob methods to load another image. The image is merged with the existing image.
The resulting merged image is stored in ProcessImageID, overwriting the existing image.
If an area or area is active when "merge" is called, the source image will be merged with the active area or area on the target image.
If the bit depth of any one of the images to be merged is less than 24 bits, then the two images are converted into 24-bit images and then merged. However, combining a 1-bit image with another 1-bit image may produce a 1-bit image.
If any of the images to be merged has an associated color profile, the profile of each image is applied, and then the images are merged. No color profile is retained.
When the images to be merged are all TIFF files with tags, first capture the tags, then merge, and then apply the tags again to ensure that the tags are saved when merging.
The sub-picture still cannot merge part of an image with another image.
You can check the IPImageWasModified property at any time to determine whether the image was modified by the previous processing operation. (If an error occurs during processing, the processing action will be interrupted and the image will not be modified.)
Enable the undo function

The undo function allows you to undo the action of the processing method. To use the undo function:

Make sure the UndoEnabled property is set to True. This enables the undo function for a specific image before performing image processing.
When UndoEnabled is True, additional memory is required to store the undo image. If you don't need to undo, please set UndoEnabled to False to reduce memory usage.
Undo processing action

To undo the image processing operation, call the undo method. The current DIB (hDIB) is replaced by Undo DIB (hDIBUndo), thus restoring the image to its original state. The hDIBUndo attribute is set to NULL.
Only image processing actions can be undone. Changes to ICM, loading and saving cannot be undone.
Draw lines and shapes on DIB

The ImagXpress® control has a graphics drawing method that allows you to draw lines and shapes on the DIB. Since the graphics are drawn on the DIB, they become a permanent part of the image.

The undo method does not undo changes to the image palette.
The following properties and methods are used to draw graphics:
DrawMode property-Get and set a value that determines how to manage the interaction of color settings (for example: pen color, background color, display color and foreground color).
DrawStyle property—gets and sets a value that determines the line style output by the graphics method.
DrawWidth property—gets and sets the line width output by the graphics method.
DrawFillStyle property—gets and sets the mode used to fill circles and boxes created using DrawCircle, DrawLine and DrawPolygon graphics methods.
DrawFillColor property—gets and sets the color used to fill circles, rectangles and polygons created using the DrawCircle, DrawLine and DrawPolygon graphics methods.
DrawLine method-draw lines and rectangles on the image.
DrawCurve —Draw a Bezier curve on the image.
DrawCircle —Draw a circle or ellipse on the image.
DrawPolygon —Draw a polygon with 2-6 sides on the image.
DrawRoundRect —Draw a rectangle with rounded corners on the image.
DrawArc —Draw an arc on the image.
DrawPie —Draw a pie-shaped wedge on the image.
DrawTextString — Draw text on the image.
If you want to buy a genuine ImagXpress license, or for more product information, please click [Consult Online Customer Service]

Guess you like

Origin blog.51cto.com/14874181/2554982