Foxit PDF SDK for HarmonyOS  3.0
ImageCompressionCallback Class Reference
Inheritance diagram for ImageCompressionCallback:
NativeObjectWrapper

Public Member Functions

 GetTemporaryFileStream (bitmap)
 Get temporary file stream. The file stream is used for saving the encoding result of JPEG2000 and JBIG2 temporarily. More...
 
 Release ()
 A callback function used to release current callback object itself. More...
 
- Public Member Functions inherited from NativeObjectWrapper
 constructor (r)
 
 GetPointerAsNumber ()
 

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.

Examples
/Users/ec2-user/gitlab-runner/builds/E-xKdhDoq/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.

Member Function Documentation

◆ GetTemporaryFileStream()

ImageCompressionCallback.GetTemporaryFileStream ( bitmap  )

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

Parameters
[in]bitmapA 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()

ImageCompressionCallback.Release ( )

A callback function used to release current callback object itself.

Returns
None.