UNPKG

@ahmic/autoit-js

Version:
11 lines (10 loc) 1.22 kB
import koffi from 'koffi'; import { BitmapHandle, Bool, DeviceContextHandle, DoubleWord, Int, LongPointerToVoid, UnsignedInt } from '../@types'; import { IBitmapInfo } from '../@types/bitmap-info'; export declare const BitBlt: koffi.KoffiFunc<(hdc: DeviceContextHandle, x: Int, y: Int, cx: Int, cy: Int, hrdSrc: DeviceContextHandle, x1: Int, y1: Int, rop: DoubleWord) => boolean>; export declare const CreateCompatibleDC: koffi.KoffiFunc<(deviceContextHandle: DeviceContextHandle) => DeviceContextHandle>; export declare const CreateCompatibleBitmap: koffi.KoffiFunc<(deviceContextHandle: DeviceContextHandle, width: Int, height: Int) => BitmapHandle>; export declare const GetDIBits: koffi.KoffiFunc<(hdc: DeviceContextHandle, hbitmap: BitmapHandle, start: UnsignedInt, cLines: UnsignedInt, lpvBits: LongPointerToVoid | Buffer | Uint8Array, lpbi: IBitmapInfo, usage: UnsignedInt) => Int>; export declare const SelectObject: koffi.KoffiFunc<(deviceContextHandle: DeviceContextHandle, bitmapHandle: BitmapHandle) => BitmapHandle>; export declare const DeleteObject: koffi.KoffiFunc<(bitmapHandle: BitmapHandle) => Bool>; export declare const DeleteDC: koffi.KoffiFunc<(deviceContextHandle: DeviceContextHandle) => Bool>;