0724 last mod

Signed-off-by: p00591942 <pengpeng35@huawei.com>
Change-Id: If775274a98d2ba0103a10cd65404df75924a4812
This commit is contained in:
p00591942 2023-07-24 16:06:45 +08:00
parent ee0cb896b1
commit ab5e8000a3

View File

@ -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
*/