Structs§
- Image
Native_ - Image
Packer_ Native_ - Image
Packer_ Opts_ - @brief Defines the image packing options.
- Image
Receiver Native_ - @brief Defines an ImageReceiver object at the native layer.
- Image
Source Native_ - @brief Defines a native image source object for the image source APIs.
- Native
Pixel Map_ - @brief Defines the native pixel map information. @since 10 @version 1.0
- Ohos
Image Component - @brief Defines the image composition information.
- Ohos
Image Decoding Ops - @brief Defines the options for decoding the image source. It is used in {@link OH_ImageSource_CreatePixelMap} and {@link OH_ImageSource_CreatePixelMapList}.
- Ohos
Image Receiver Info - @brief Defines the information about an image receiver.
- Ohos
Image Rect - @brief Defines the information about an image rectangle.
- Ohos
Image Region - @brief Defines the region of the image source to decode. It is used in {@link OhosImageDecodingOps}, {@link OH_ImageSource_CreatePixelMap}, and {@link OH_ImageSource_CreatePixelMapList}.
- Ohos
Image Size - @brief Defines the image size.
- Ohos
Image Source - @brief Defines the input resource of the image source. It is obtained by calling {@link OH_ImageSource_Create}. Only one type of resource is accepted at a time.
- Ohos
Image Source Delay Time List - @brief Defines the delay time list of the image source. It is obtained by calling {@link OH_ImageSource_GetDelayTime}.
- Ohos
Image Source Info - @brief Defines the image source information, which is obtained by calling {@link OH_ImageSource_GetImageInfo}.
- Ohos
Image Source Ops - @brief Defines image source options information {@link OH_ImageSource_Create} and {@link OH_ImageSource_CreateIncremental}.
- Ohos
Image Source Property - @brief Defines the property string (in key-value format) of the image source. It is used in {@link OH_ImageSource_GetImageProperty} and {@link OH_ImageSource_ModifyImageProperty}.
- Ohos
Image Source Supported Format - @brief Defines image source supported format string. {@link OhosImageSourceSupportedFormatList} and {@link OH_ImageSource_GetSupportedFormats}
- Ohos
Image Source Supported Format List - @brief Defines the format string list supported by the image source. It is obtained by calling {@link OH_ImageSource_GetSupportedFormats}.
- Ohos
Image Source Update Data - @brief Defines the update data of the image source. It is obtained by calling {@link OH_ImageSource_UpdateData}.
- Ohos
Pixel MapCreate Ops - @brief Defines the options used for creating a pixel map.
- Ohos
Pixel MapInfos - @brief Defines the pixel map information.
Constants§
- OH_
Pixel Map_ Anti Aliasing Level_ OH_ Pixel Map_ Anti Aliasing_ HIGH - Cubic interpolation.
- OH_
Pixel Map_ Anti Aliasing Level_ OH_ Pixel Map_ Anti Aliasing_ LOW - Bilinear interpolation, without mipmap linear filtering.
- OH_
Pixel Map_ Anti Aliasing Level_ OH_ Pixel Map_ Anti Aliasing_ MEDIUM - Bilinear interpolation, with mipmap linear filtering.
- OH_
Pixel Map_ Anti Aliasing Level_ OH_ Pixel Map_ Anti Aliasing_ NONE - Nearest-neighbor interpolation.
Functions§
- OH_
Image ⚠Packer_ Create - @brief Creates an ImagePacker object at the JavaScript native layer.
- OH_
Image ⚠Packer_ Init Native - @brief Parses an {@link ImagePacker_Native} object at the native layer from a JavaScript native API ImagePacker object.
- OH_
Image ⚠Packer_ Pack ToData - @brief Encoding an ImageSource or a PixelMap into the data with required format
- OH_
Image ⚠Packer_ Pack ToFile - @brief Encoding an ImageSource or a PixelMap into the a file with fd with required format
- OH_
Image ⚠Packer_ Release - @brief Releases an {@link ImagePacker_Native} object at the native layer. Note: This API is not used to release a JavaScript native API ImagePacker object. It is used to release the object {@link ImagePacker_Native} at the native layer parsed by calling {@link OH_ImagePacker_InitNative}.
- OH_
Image ⚠Source_ Create - @brief Creates an ImageSource object at the JavaScript native layer based on the specified {@link OhosImageSource} and {@link OhosImageSourceOps} structs.
- OH_
Image ⚠Source_ Create From Data - @brief Creates an ImageSource object at the JavaScript native layer based on the specified image source data and {@link OhosImageSourceOps} structs.
- OH_
Image ⚠Source_ Create From Fd - @brief Creates an ImageSource object at the JavaScript native layer based on the specified image source file descriptor and {@link OhosImageSourceOps} structs.
- OH_
Image ⚠Source_ Create From RawFile - @brief Creates an ImageSource object at the JavaScript native layer based on the specified raw file’s file descriptor and {@link OhosImageSourceOps} structs.
- OH_
Image ⚠Source_ Create From Uri - @brief Creates an ImageSource object at the JavaScript native layer based on the specified image source URI and {@link OhosImageSourceOps} structs.
- OH_
Image ⚠Source_ Create Incremental - @brief Creates an incremental ImageSource object at the JavaScript native layer based on the specified {@link OhosImageSource} and {@link OhosImageSourceOps} structs. The image source data will be updated through {@link OH_ImageSource_UpdateData}.
- OH_
Image ⚠Source_ Create Incremental From Data - @brief Creates an incremental ImageSource object at the JavaScript native layer based on the specified image source data and {@link OhosImageSourceOps} structs. The image source data will be updated through {@link OH_ImageSource_UpdateData}.
- OH_
Image ⚠Source_ Create Pixel Map - @brief Decodes an ImageSource object to obtain a PixelMap object at the JavaScript native layer based on the specified {@link OhosImageDecodingOps} struct.
- OH_
Image ⚠Source_ Create Pixel MapList - @brief Decodes an ImageSource to obtain all the PixelMap objects at the JavaScript native layer based on the specified {@link OhosImageDecodingOps} struct.
- OH_
Image ⚠Source_ GetDelay Time - @brief Obtains the delay time list from some ImageSource objects (such as GIF image sources).
- OH_
Image ⚠Source_ GetFrame Count - @brief Obtains the number of frames from an ImageSource object.
- OH_
Image ⚠Source_ GetImage Info - @brief Obtains image source information from an ImageSource object by index.
- OH_
Image ⚠Source_ GetImage Property - @brief Obtains the value of an image property from an ImageSource object.
- OH_
Image ⚠Source_ GetSupported Formats - @brief Obtains all supported decoding formats.
- OH_
Image ⚠Source_ Init Native - @brief Converts an {@link ImageSource} object at the JavaScript native layer to an ImageSourceNative object at the C++ native layer.
- OH_
Image ⚠Source_ Modify Image Property - @brief Modifies the value of an image property of an ImageSource object.
- OH_
Image ⚠Source_ Release - @brief Releases an ImageSourceNative object.
- OH_
Image ⚠Source_ Update Data - @brief Updates the data of an ImageSource object.
- OH_
Image_ ⚠Clip Rect - @brief Obtains {@link OhosImageRect} of an {@link ImageNative} at the native layer.
- OH_
Image_ ⚠Format - @brief Obtains the image format of an {@link ImageNative} object at the native layer.
- OH_
Image_ ⚠GetComponent - @brief Obtains {@link OhosImageComponent} of an {@link ImageNative} object at the native layer.
- OH_
Image_ ⚠Init Image Native - @brief Parses an {@link ImageNative} object at the native layer from a JavaScript native API image object.
- OH_
Image_ ⚠Receiver_ Create Image Receiver - @brief Creates an ImageReceiver object at the application layer.
- OH_
Image_ ⚠Receiver_ GetCapacity - @brief Obtains the capacity of the image receiver through an {@link ImageReceiverNative} object.
- OH_
Image_ ⚠Receiver_ GetFormat - @brief Obtains the format of the image receiver through an {@link ImageReceiverNative} object.
- OH_
Image_ ⚠Receiver_ GetReceiving Surface Id - @brief Obtains the receiver ID through an {@link ImageReceiverNative} object.
- OH_
Image_ ⚠Receiver_ GetSize - @brief Obtains the size of the image receiver through an {@link ImageReceiverNative} object.
- OH_
Image_ ⚠Receiver_ Init Image Receiver Native - @brief Initializes an {@link ImageReceiverNative} object at the native layer through an ImageReceiver object at the application layer.
- OH_
Image_ ⚠Receiver_ On - @brief Registers an {@link OH_Image_Receiver_On_Callback} callback event.
- OH_
Image_ ⚠Receiver_ Read Latest Image - @brief Obtains the latest image through an {@link ImageReceiverNative} object.
- OH_
Image_ ⚠Receiver_ Read Next Image - @brief Obtains the next image through an {@link ImageReceiverNative} object.
- OH_
Image_ ⚠Receiver_ Release - @brief Releases an {@link ImageReceiverNative} object at the native layer.
- OH_
Image_ ⚠Release - @brief Releases an {@link ImageNative} object at the native layer. Note: This API is not used to release a JavaScript native API Image object. It is used to release the object {@link ImageNative} at the native layer parsed by calling {@link OH_Image_InitImageNative}.
- OH_
Image_ ⚠Size - @brief Obtains {@link OhosImageSize} of an {@link ImageNative} object at the native layer.
- OH_
Pixel ⚠Map_ Access Pixels - @brief Obtains the memory address of a NativePixelMap object and locks the memory.
- OH_
Pixel ⚠Map_ Create Alpha Pixel Map - @brief Creates a PixelMap object that contains only alpha channel information.
- OH_
Pixel ⚠Map_ Create Pixel Map - @brief Creates a PixelMap object. Currently, only BGRA input streams are supported.
- OH_
Pixel ⚠Map_ Create Pixel MapWith Stride - @brief Creates a PixelMap object.
- OH_
Pixel ⚠Map_ Crop - @brief Crops a NativePixelMap object.
- OH_
Pixel ⚠Map_ Flip - @brief Flips a NativePixelMap object.
- OH_
Pixel ⚠Map_ GetBytes Number PerRow - @brief Obtains the number of bytes per row of a NativePixelMap object.
- OH_
Pixel ⚠Map_ GetDensity - @brief Obtains the pixel density of a NativePixelMap object.
- OH_
Pixel ⚠Map_ GetImage Info - @brief Obtains the image information of a NativePixelMap object.
- OH_
Pixel ⚠Map_ GetIs Editable - @brief Checks whether a NativePixelMap object is editable.
- OH_
Pixel ⚠Map_ Init Native Pixel Map - @brief Initializes a NativePixelMap object.
- OH_
Pixel ⚠Map_ IsSupport Alpha - @brief Checks whether a NativePixelMap object supports alpha channels.
- OH_
Pixel ⚠Map_ Rotate - @brief Rotates a NativePixelMap object.
- OH_
Pixel ⚠Map_ Scale - @brief Scales a NativePixelMap object.
- OH_
Pixel ⚠Map_ Scale With Anti Aliasing - @brief Scales a NativePixelMap object based on the specified anti-aliasing level, width, and height.
- OH_
Pixel ⚠Map_ SetAlpha Able - @brief Sets an alpha channel for a NativePixelMap object.
- OH_
Pixel ⚠Map_ SetDensity - @brief Sets the pixel density for a NativePixelMap object.
- OH_
Pixel ⚠Map_ SetOpacity - @brief Sets the opacity for a NativePixelMap object.
- OH_
Pixel ⚠Map_ Translate - @brief Translates a NativePixelMap object.
- OH_
Pixel ⚠Map_ UnAccess Pixels - @brief Unlocks the memory of a NativePixelMap object. This function is used with {@link OH_PixelMap_AccessPixels} in pairs.
Type Aliases§
- Image
Native - @brief Defines an image object at the native layer for the image interface.
- Image
Packer_ Native - @brief Defines an image packer object at the native layer for the image packer interface.
- Image
Packer_ Opts - @brief Defines alias of image packing options.
- Image
Receiver Native - @brief Defines the data type name of a native image receiver.
- Image
Source Native - @brief Defines a native image source object for the image source APIs.
- Native
Pixel Map - @brief Defines the data type name of the native pixel map. @since 10 @version 1.0
- OH_
Image_ Receiver_ On_ Callback - @brief Defines the callbacks for images at the native layer.
- OH_
Pixel Map_ Anti Aliasing Level - @brief Enumerates the anti-aliasing level.