# hellonapi_1 **Repository Path**: peeanut/hellonapi_1 ## Basic Information - **Project Name**: hellonapi_1 - **Description**: 开源鸿蒙前端代码 1-图片转灰 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-12-25 - **Last Updated**: 2025-01-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 在pathto\OpenHarmony\Sdk\11\ets\api目录下创建@ohos.hellonapi.d.ts文件,内容如下: ``` import resourceManager from './@ohos.resourceManager'; declare namespace hellonapi { interface PixelInfo { rows: number; cols: number; buffSize: number; byteBuffer: ArrayBuffer; } function getHelloString(): string; /** * * * @since 9 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore */ function add(a: number, b: number): number; function img2Gray(resmgr: resourceManager.ResourceManager, path: string, file: string): PixelInfo; } export default hellonapi; ```