| synopsis || return value || prev |

kdu_region_decompressor::finish

Java: Kdu_region_decompressor::Finish

bool finish( )

Java: boolean Finish( )

[Declared in "../apps/support/kdu_region_decompressor.h"]

Go to class description.


Synopsis

Every call to start must be matched by a call to finish; however, you may call finish prematurely. This allows processing to be terminated on a region whose intersection with a display window has become too small to justify the effort.


Return Value

If the function returns false, a fatal error has occurred in the underlying code-stream and you must destroy the codestream object (use kdu_codestream::destroy). You will probably also have to close the relevant compressed data source (e.g., using kdu_compressed_source::close). This should clean up all the resources correctly, in preparation for subsequently opening a new code-stream for further decompression and rendering work.


| top || synopsis || return value || prev |