hi_vpc_make_border_info

说明

VPC图像填充需要用的信息。

定义

hi_vpc_crop_resize_paste_region = {"top": top,
                                   "bottom": bottom,
                                   "left": left,
                                   "right": right,
                                   "border_type": hi_vpc_bord_type,
                                   "scalar_value": hi_vpc_scalar}

成员

成员名称

描述

top

整型, 顶部填充像素数。

bottom

整型, 底部填充像素数。

left

整型, 左侧填充像素数。

right

整型, 右侧填充像素数。

border_type

整型, 扩充边缘像素的类型。

scalar_value

字典, 仅在填充类型为HI_BORDER_CONSTANT的时候有效,指定填充的像素值;

当前仅支持用户手动按顺序存放R、G、B分量的值。