| synopsis || arguments || prev || next |
void configure_overlays( bool enable, int min_display_size, int painting_param)
Java: void Configure_overlays( boolean enable, int min_display_size, int painting_param)
[Declared in "../apps/support/kdu_region_compositor.h"]
Use this function to enable or disable the rendering of spatially sensitive metadata as overlay information on the compositing surface. When enabled, overlay information is generated as required during calls to process and folded into the composited result. If overlay surfaces were previously active, disabling the overlay functionality may cause the next call to process to return a new_region which is the size of the entire composited image, so that your application will know that it needs to repaint the whole thing.
If true, overlays are enabled (or remain enabled). If false, overlays are disabled and the remaining arguments are ignored.
Specifies the minimum size occupied by the overlay's bounding box on the composited surface, at the prevailing scale. If an overlay has a bounding box which will be rendered with both dimensions smaller than min_display_size, it will not be rendered at all. Setting a modest value for this parameter, say in the range 4 to 8, helps reduce clutter when viewing an image with a lot of metadata. On the other hand, this can make it hard to locate tiny regions of significance when zoomed out to a small scale.
Parameter passed to the overridable paint_overlay function, which may be used to control the appearance of the overlay imagery. The default implementation of paint_overlay uses this parameter as follows:
Each time you call this function with a different value for the painting_param argument, all active metadata is scheduled for repainting with the new parameter. The actual painting occurs during calls to process — each call will repaint at most one overlay region.