harmony 鸿蒙OhosImageSource

  • 2025-06-12
  • 浏览 (5)

OhosImageSource

Overview

The OhosImageSource struct defines the input resource of an image source. Only one type of resource is accepted at a time. The image source is obtained by calling OH_ImageSource_Create.

System capability: SystemCapability.Multimedia.Image

Deprecated from: 11

Since: 10

Related module: Image

Header file: image_source_mdk.h

Summary

Member Variables

Name Description
char * uri = nullptr Pointer to the image source URI. Only a file URI or Base64 URI is accepted.
size_t uriSize = 0 Length of the image source URI.
int32_t fd = -1 Descriptor of the image source.
uint8_t * buffer = nullptr Pointer to the image source buffer. Only a formatted packet buffer or Base64 buffer is accepted.
size_t bufferSize = 0 Size of the image source buffer.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Image Kit

harmony 鸿蒙_image___native_module

harmony 鸿蒙Image_Region

harmony 鸿蒙Image_Size

harmony 鸿蒙Image_String

harmony 鸿蒙ImageEffect

harmony 鸿蒙ImageEffect_Any

harmony 鸿蒙ImageEffect_FilterDelegate

harmony 鸿蒙ImageEffect_FilterNames

harmony 鸿蒙ImageEffect_Region

0  赞