openharmony 鸿蒙 capi-image-ohosimagesource

2026-08-25 浏览 (1)

OhosImageSource

struct OhosImageSource {...}

Overview

The struct describes 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_CreateFromUri, OH_ImageSource_CreateFromFd, or OH_ImageSource_CreateFromData.

Since: 10

Deprecated from: 11

Related module: Image

Header file: image_source_mdk.h

Summary

Member Variables

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

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-image-nativemodule-oh-pixelmap-hdrmetadatavalue

openharmony 鸿蒙 capi-image-imagepacker-opts-

openharmony 鸿蒙 capi-image-nativemodule-image-region

openharmony 鸿蒙 capi-image-imagepacker-native-

openharmony 鸿蒙 capi-image-imagenative-

openharmony 鸿蒙 capi-image-processing-h

openharmony 鸿蒙 capi-image-ohosimagesourcesupportedformat

openharmony 鸿蒙 capi-image-nativemodule-image-size

openharmony 鸿蒙 capi-image-mdk-h

openharmony 鸿蒙 capi-image-ohosimagesourcedelaytimelist

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/3Qd0zBun