UFUN 截图函数

 int upper_left_corners[2];
        int width , height ;

        /* create a full window TIFF file */

        UF_DISP_create_image("D:\\test.tif",
                             UF_DISP_TIFF,
                             UF_DISP_ORIGINAL);


//获取鼠标框选位置点位

//
        /* create a rectangular area compressed TIFF file */

        upper_left_corners[0] = 50;
        upper_left_corners[1] = 50;
        width = 200;
        height = 200;

        UF_DISP_create_framed_image("D:\\testc.tif",
                             UF_DISP_COMPRESSED_TIFF,
                             UF_DISP_ORIGINAL,
                             upper_left_corners,
                             width,
                             height);

posted @ 2021-07-23 16:02  T_T2001  阅读(155)  评论(0)    收藏  举报