diff --git a/api/@internal/component/ets/canvas.d.ts b/api/@internal/component/ets/canvas.d.ts index c860017b28383edc2dfdf8dc806ea002d3ca3ab6..75771b8d2922056f16fae853c985ba3d2f5e7a41 100644 --- a/api/@internal/component/ets/canvas.d.ts +++ b/api/@internal/component/ets/canvas.d.ts @@ -701,6 +701,16 @@ declare class CanvasRenderer extends CanvasPath { */ getImageData(sx: number, sy: number, sw: number, sh: number): ImageData; + /** + * Obtains the PixelMap of a specified area on the current canvas. + * @param sx x coordinate of the upper left corner of the rectangular area of the PixelMap to be extracted. + * @param sy y coordinate of the upper left corner of the rectangular area of the PixelMap to be extracted. + * @param sw The width of the rectangular area of the PixelMap to be extracted. + * @param sh The height of the rectangular area of the PixelMap to be extracted. + * @since 8 + */ + getPixelMap(sx: number, sy: number, sw: number, sh: number): PixelMap; + /** * Draws the specified ImageData object onto the canvas * @param imagedata ImageData object to be drawn.