Foxit PDF SDK

Public Member Functions | List of all members
foxit::addon::optimization::ImageCompressionCallback Class Referenceabstract

## Public Member Functions
virtual common::file::StreamCallback * | GetTemporaryFileStream (const common::Bitmap &bitmap)=0
| Get temporary file stream. The file stream is used for saving the encoding result of JPEG2000 and JBIG2 temporarily. More...
virtual void | Release ()=0
| A callback function used to release current callback object itself. More...

## Detailed Description

This class represent a callback object used during the process to optimizie PDF document. All the pure virtual functions in this class are used as callback functions and should be implemented by user.

## Member Function Documentation

## ◆ GetTemporaryFileStream()

virtual common::file::StreamCallback* foxit::addon::optimization::ImageCompressionCallback::GetTemporaryFileStream | ( | const common::Bitmap & | bitmap | ) |
| pure virtual

Get temporary file stream. The file stream is used for saving the encoding result of JPEG2000 and JBIG2 temporarily.

Parameters

  [in] | bitmap | A bitmap object need to be encoded.

Returns
  A common::file::StreamCallback object which is implemented by user. This callback would be used to save image data. Foxit PDF SDK will call the callback function common::file::StreamCallback::Release of the returned stream object when it is no longer needed.

## ◆ Release()

virtual void foxit::addon::optimization::ImageCompressionCallback::Release | ( |  | ) |
| pure virtual

A callback function used to release current callback object itself.

Returns
  None.