Applying dithering, zooming, or transparency

You can use the Effect(Mode, Value) method provided by the CRMGraphicBlock object to apply a number of special effects to an image, including dithering, zooming, and transparency.

  • Dithering. You can apply a dithering mode to an image to help improve its appearance, especially where color is limited. The available modes are:
    • Burkes
    • FloydSteinberg
    • JaJuNi
    • Sierra
    • SteveArche
    • Stucki

    The following example shows how to apply a dithering mode to an image:

    Copy
    Effect('Dither','FloydSteinberg');
  • Zooming. You can magnify an image using the Zoom parameter and a percentage of zoom required. By default, the area to be zoomed is the center of the image.
    Example:

    Copy
    Effect('Zoom','200');
  • Transparency. Available only in GIF images. You can enable transparency to make any whiteness in an image become transparent.
    The following example shows how to enable transparency:

    Copy
    Effect('Transparency','true');