Skip to main content
This object is used to store parameters of image modification. Method IImageDocument::Modify that is used to modify an image, together with some other methods, takes a reference to this object as an input parameter. The ImageModification allows a wide range of operations upon an image, such as stretching, setting clip regions, inversion regions, paint regions, replace pixels regions, remove garbage regions. The image is modified as follows:
  • The color of text and the size of garbage in regions is determined.
  • Image part inside the clipping regions is cut.
  • “Paint” regions are filled in with the corresponding color.
  • Colors inside the “invert” regions are inverted.
  • Black dots inside the “replace black pixels” regions are replaced with the dots of the corresponding color.
  • White dots inside the “replace white pixels” regions are replaced with the dots of the corresponding color.
  • The garbage inside the “remove garbage” regions is cleaned up. This modification can be applied only to the black-and-white image plane.
  • Image is stretched with the stretch ratio defined by the StretchRatio property.
All regions that are added inside this object should not exceed the bounds of the image rectangle. The ImageModification object is a persistent object. This means that the object’s current state can be written to persistent storage. Later, the object can be re-created by reading the object’s state from the persistent storage. The following methods provide persistence of the object: Linux: SaveToFile, and LoadFromFile Windows: SaveToFile, LoadFromFile, SaveToMemory, and LoadFromMemory.

Properties

Methods

Output parameter

This object is the output parameter of the CreateImageModification method of the Engine object.

Input parameter

This object is passed as an input parameter to the following methods:

Samples

See also

Working with Images Working with Properties