forte icon indicating copy to clipboard operation
forte copied to clipboard

`DataPack` image getter and setting function

Open hepengfe opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. Currently, we don't have DataPack.set_image() that can simplify the DataPack API to set image payload cache data.

Describe the solution you'd like

  • DataPack.set_image() that takes image data and set the cache data of image payload at the specified index.
  • DataPack.image that getting image data from ImagePayload

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

hepengfe avatar Jul 11 '22 18:07 hepengfe