harmony 鸿蒙drawing_bitmap.h

  • 2023-06-24
  • 浏览 (498)

drawing_bitmap.h

Overview

Declares functions related to the bitmap object in the drawing module.

Since: 8

Related Modules:

Drawing

Summary

Structs

Name Description
OH_Drawing_BitmapFormat Defines the pixel format of a bitmap, including the color type and alpha type.

Functions

Name Description
OH_Drawing_BitmapCreate (void) Creates an OH_Drawing_Bitmap object.
OH_Drawing_BitmapDestroy (OH_Drawing_Bitmap *) Destroys an OH_Drawing_Bitmap object and reclaims the memory occupied by the object.
OH_Drawing_BitmapBuild (OH_Drawing_Bitmap *, const uint32_t width, const uint32_t height, const OH_Drawing_BitmapFormat *) Initializes the width and height of an OH_Drawing_Bitmap object and sets the pixel format for the bitmap.
OH_Drawing_BitmapGetWidth (OH_Drawing_Bitmap *) Obtains the width of a bitmap.
OH_Drawing_BitmapGetHeight (OH_Drawing_Bitmap *) Obtains the height of a bitmap.
OH_Drawing_BitmapGetPixels (OH_Drawing_Bitmap *) Obtains the pixel address of a bitmap. You can use this address to obtain the pixel data of the bitmap.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native APIs

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞