image\bookopns.gif Improving raster images

 

Raster commands are used to combine layers on a page into one raster layer, or to improve a raster image.

Normally, the new raster that results from a raster operation is placed in a new document window. To have the new raster placed in the existing window, overwriting the source image, change the overwrite raster flag using the SetOverWriteRaster(1) transaction. Use the GetOverWriteRaster transaction to request the status of this flag.

Most raster operations apply only to the active raster layer.

To find out which layer is the active raster:

· Use the GetActiveLayer transaction.

The identifiers of the active raster and active edit layer (if any) will be returned.

To activate a different layer:

· Use the SetActiveLayer(docwinID, layerID, 1) transaction.

The specified layer is activated.

The following topics deal with various raster commands.

image\pages.gif  Rasterizing layers

image\pages.gif  Despeckling an image

image\pages.gif  Deskewing an image

image\pages.gif  Resizing and cropping a raster

image\pages.gif  Changing raster characteristics

Back to: How Do I? Overview