mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
0724 last mod
Signed-off-by: p00591942 <pengpeng35@huawei.com> Change-Id: If775274a98d2ba0103a10cd65404df75924a4812
This commit is contained in:
parent
ee0cb896b1
commit
ab5e8000a3
18
api/@ohos.effectKit.d.ts
vendored
18
api/@ohos.effectKit.d.ts
vendored
@ -166,18 +166,21 @@ declare namespace effectKit {
|
||||
|
||||
/**
|
||||
* Create a color picker to get color of an image.
|
||||
* @since 9
|
||||
* @param { image.PixelMap } source - the source pixelmap.
|
||||
* @returns { Promise<ColorPicker> } - returns the ColorPicker generated.
|
||||
* @throws { BusinessError } 401 - Input parameter error.
|
||||
* @syscap SystemCapability.Multimedia.Image.Core
|
||||
* @param image.PixelMap.
|
||||
* @returns Returns the ColorPicker.
|
||||
* @since 9
|
||||
*/
|
||||
function createColorPicker(source: image.PixelMap): Promise<ColorPicker>;
|
||||
|
||||
/**
|
||||
* Create a color picker to get color of an image.
|
||||
* @param { image.PixelMap } source - the source pixelmap.
|
||||
* @param { Array<number> } region - contains 4 elements, represents the region's left, top, right, bottom coordinates,
|
||||
* default is [0, 0, 1, 1], represents the region of color picker is the whole pixelMap.
|
||||
* @returns { Promise<ColorPicker> } - returns the ColorPicker generated.
|
||||
* @throws { BusinessError } 401 - Input parameter error.
|
||||
* @syscap SystemCapability.Multimedia.Image.Core
|
||||
* @since 10
|
||||
*/
|
||||
@ -185,18 +188,21 @@ declare namespace effectKit {
|
||||
|
||||
/**
|
||||
* Create a color picker to get color of an image.
|
||||
* @since 9
|
||||
* @param { image.PixelMap } source - the source pixelmap.
|
||||
* @param { AsyncCallback<ColorPicker> } callback - the callback of createColorPicker.
|
||||
* @throws { BusinessError } 401 - Input parameter error.
|
||||
* @syscap SystemCapability.Multimedia.Image.Core
|
||||
* @param image.PixelMap.
|
||||
* @returns Returns the ColorPicker.
|
||||
* @since 9
|
||||
*/
|
||||
function createColorPicker(source: image.PixelMap, callback: AsyncCallback<ColorPicker>): void;
|
||||
|
||||
/**
|
||||
* Create a color picker to get color of an image.
|
||||
* @param { image.PixelMap } source - the source pixelmap.
|
||||
* @param { Array<number> } region - contains 4 elements, represents the region's left, top, right, bottom coordinates,
|
||||
* default is [0, 0, 1, 1], represents the region of color picker is the whole pixelMap.
|
||||
* @param { AsyncCallback<ColorPicker> } callback - the callback of createColorPicker.
|
||||
* @throws { BusinessError } 401 - Input parameter error.
|
||||
* @syscap SystemCapability.Multimedia.Image.Core
|
||||
* @since 10
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user