在HDevelop中
2.png
dev_open_window(10,10,193,143,'black',WindowHandle) read_image (Image, 'D:/bb/tu/2.png') invert_image (Image, ImageInvert) *圖像取反:g'=255-g *參數1:輸入圖像 *參數2:保存取反后的圖像 dev_display (ImageInvert)
在QtCreator中
HObject ho_Image, ho_ImageInvert;
HTuple hv_WindowHandle;
SetWindowAttr("background_color","black"); OpenWindow(10,10,193,143,0,"visible","",&hv_WindowHandle); ReadImage(&ho_Image, "D:/bb/tu/2.png"); InvertImage(ho_Image, &ho_ImageInvert); //圖像取反:g'=255-g //參數1:輸入圖像 //參數2:保存取反后的圖像 DispObj(ho_ImageInvert, hv_WindowHandle);