鸿蒙OpenHarmony Native API【结构体】 头文件

OH_Drawing_BitmapFormat

Overview

Related Modules:

Drawing

Description:

结构体用于描述位图像素的格式,包括颜色类型和透明度类型

Since:

8

Version:

1.0

Summary

Public Attributes

Public Attribute Name Description
colorFormat
alphaFormat

Details

Member Data

alphaFormat

复制代码
OH_Drawing_AlphaFormat OH_Drawing_BitmapFormat::alphaFormat

Description:

描述位图像素的透明度分量

colorFormat

复制代码
OH_Drawing_ColorFormat OH_Drawing_BitmapFormat::colorFormat

Description:

描述位图像素的存储格式

OH_NativeXComponent_Callback

Overview

Related Modules:

Native XComponent

Description:

Registers the surface lifecycle and touch event callbacks.

Since: 8 Version: 1.0

Summary

Public Attributes

Public Attribute Name Description
OnSurfaceCreated )(OH_NativeXComponent *component, void *window)
OnSurfaceChanged )(OH_NativeXComponent *component, void *window)
OnSurfaceDestroyed )(OH_NativeXComponent *component, void *window)
DispatchTouchEvent )(OH_NativeXComponent *component, void *window)

OH_NativeXComponent_TouchEvent

Overview

Related Modules:

Native XComponent

Summary

Public Attributes

Public Attribute Name Description
id = 0
screenX = 0.0
screenY = 0.0
x = 0.0
y = 0.0
type = OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWN
size = 0.0
force = 0.0
deviceId= 0
timeStamp = 0
touchPoints OH_MAX_TOUCH_POINTS_NUMBER
numPoints = 0

OH_NativeXComponent_TouchPoint

Overview

Related Modules:

Native XComponent

Summary

Public Attributes

Public Attribute Name Description
id = 0
screenX = 0.0
screenY = 0.0
x = 0.0
y = 0.0
type = OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWN
size = 0.0
force = 0.0
timeStamp = 0
isPressed = false

RawFileDescriptor

Overview

Related Modules:

Rawfile

Description:

提供rawfile文件描述符信息

RawFileDescriptor是OH_ResourceManager_GetRawFileDescriptor的输出参数, 涵盖了rawfile文件的文件描述符以及在HAP包中的起始位置和长度。

Since:

8

Version:

1.0

Summary

Public Attributes

Public Attribute Name Description
fd
start
length

Details

Member Data

fd

复制代码
int RawFileDescriptor::fd

Description:

rawfile文件描述符

length

复制代码
long RawFileDescriptor::length

Description:

rawfile在HAP包中的长度

start

复制代码
long RawFileDescriptor::start

Description:

rawfile在HAP包中的起始位置
以上就是本篇文章所带来的鸿蒙开发中一小部分技术讲解;想要学习完整的鸿蒙全栈技术。可以在结尾找我可全部拿到!

下面是鸿蒙的完整学习路线 ,展示如下:

除此之外,根据这个学习鸿蒙全栈学习路线,也附带一整套完整的学习【文档+视频】,内容包含如下:

内容包含了:(ArkTS、ArkUI、Stage模型、多端部署、分布式应用开发、音频、视频、WebGL、OpenHarmony多媒体技术、Napi组件、OpenHarmony内核、鸿蒙南向开发、鸿蒙项目实战)等技术知识点。帮助大家在学习鸿蒙路上快速成长!

鸿蒙【北向应用开发+南向系统层开发】文档

鸿蒙【基础+实战项目】视频

鸿蒙面经

为了避免大家在学习过程中产生更多的时间成本,对比我把以上内容全部放在了↓↓↓想要的可以自拿喔!谢谢大家观看!

相关推荐
代码改善世界14 小时前
鸿蒙电脑能被远程控制吗?ToDesk鸿蒙双向远控能力解析
华为·电脑·harmonyos
OH_TPC20 小时前
ImageKnifePro 源码解读(四):降采样策略族——按显示尺寸改衣服,不按原尺寸硬塞
harmonyos
民办二本的神21 小时前
AI 助手升级后聊天记录又丢了(二):数据一直都在,丢的是"看见"
harmonyos
羲云网络1 天前
一份多模型编程套餐怎么控成本:AceDataCloud Coding Plan缓存、Credits与鉴权排错
api·ai编程·codex·claude code·acedatacloud
VIP_CQCRE1 天前
GPT Image 2.6 升级别直接全量:可回滚的迁移与回归测试方法
api·图像生成·灰度发布·回归测试·gpt image 2.6
huang_xiaoen2 天前
鸿蒙手机远程控制电脑哪个好用?2026鸿蒙远控软件横测推荐
华为·harmonyos·远程工作·远程工具·远程办公
爱写Bug的浮游3 天前
初识仓颉:5 分钟看懂核心语法
harmonyos·编程语言
羽落•无痕(苏晗默)3 天前
华为数通IA——14、网络服务与应用:TCP/UDP 传输层协议与 FTP、Telnet、SSH 实践
网络·网络协议·tcp/ip·网络安全·华为·udp·信息与通信
程序猿追3 天前
鸿蒙 PC 的 Ionic 工单有两个错误,按下生成后光标该去哪儿
华为·harmonyos
KevinChaos4 天前
随手备忘录手记 04|HarmonyOS 7.0新特性实验:物品图鉴的加载逻辑
华为·harmonyos