openharmony 鸿蒙 capi-drawing-pixel-map-h

2026-08-25 浏览 (1)

drawing_pixel_map.h

Overview

This file declares the functions related to the pixel map in the drawing module.

File to include: <native_drawing/drawing_pixel_map.h>

Library: libnative_drawing.so

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 12

Related module: Drawing

Summary

Structs

Nametypedef KeywordDescription
NativePixelMap_NativePixelMap_Defines a pixel map defined by the image framework.
OH_PixelmapNativeOH_PixelmapNativeDefines a pixel map defined by the image framework.

Functions

NameDescription
OH_Drawing_PixelMap* OH_Drawing_PixelMapGetFromNativePixelMap(NativePixelMap_* nativePixelMap)Obtains the pixel map defined by this module from a pixel map defined by the image framework.
OH_Drawing_PixelMap* OH_Drawing_PixelMapGetFromOhPixelMapNative(OH_PixelmapNative* pixelmapNative)Obtains the pixel map defined by this module from a pixel map defined by the image framework.
void OH_Drawing_PixelMapDissolve(OH_Drawing_PixelMap* pixelMap)Removes the relationship between a pixel map defined by this module and a pixel map defined by the image framework. The relationship is established by calling OH_Drawing_PixelMapGetFromNativePixelMap or OH_Drawing_PixelMapGetFromOhPixelMapNative.

Function Description

OH_Drawing_PixelMapGetFromNativePixelMap()

OH_Drawing_PixelMap* OH_Drawing_PixelMapGetFromNativePixelMap(NativePixelMap_* nativePixelMap)

Description

Obtains the pixel map defined by this module from a pixel map defined by the image framework.

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 12

Parameters

NameDescription
NativePixelMap_* nativePixelMapPointer to a NativePixelMap_ object, which is the pixel map defined by the image framework.

Returns

TypeDescription
OH_Drawing_PixelMap*Returns the pointer to an OH_Drawing_PixelMap object, which is the pixel map defined by this module. If NULL is returned, the creation fails. The possible failure cause is that NativePixelMap_ is NULL.

OH_Drawing_PixelMapGetFromOhPixelMapNative()

OH_Drawing_PixelMap* OH_Drawing_PixelMapGetFromOhPixelMapNative(OH_PixelmapNative* pixelmapNative)

Description

Obtains the pixel map defined by this module from a pixel map defined by the image framework.

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 12

Parameters

NameDescription
OH_PixelmapNative* pixelmapNativePointer to a OH_PixelmapNative object, which is the pixel map defined by the image framework.

Returns

TypeDescription
OH_Drawing_PixelMap*Returns the pointer to an OH_Drawing_PixelMap object, which is the pixel map defined by this module. If NULL is returned, the creation fails. The possible failure cause is that OH_PixelmapNative is NULL.

OH_Drawing_PixelMapDissolve()

void OH_Drawing_PixelMapDissolve(OH_Drawing_PixelMap* pixelMap)

Description

Removes the relationship between a pixel map defined by this module and a pixel map defined by the image framework. The relationship is established by calling OH_Drawing_PixelMapGetFromNativePixelMap or OH_Drawing_PixelMapGetFromOhPixelMapNative.

System capability: SystemCapability.Graphic.Graphic2D.NativeDrawing

Since: 12

Parameters

NameDescription
OH_Drawing_PixelMap* pixelMapPointer to an OH_Drawing_PixelMap object.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-drawing-gpu-context-h

openharmony 鸿蒙 capi-drawing-nativepixelmap-

openharmony 鸿蒙 capi-nativevsync-oh-nativevsync-expectedraterange

openharmony 鸿蒙 capi-drawing-oh-drawing-brush

openharmony 鸿蒙 capi-drawing-oh-drawing-image-info

openharmony 鸿蒙 capi-drawing-text-linetypography-h

openharmony 鸿蒙 capi-oh-nativeimage-oh-nativeimage

openharmony 鸿蒙 capi-drawing-typeface-h

openharmony 鸿蒙 capi-drawing-brush-h

openharmony 鸿蒙 capi-nativewindow

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