方法
GdkPixbufPixbufcomposite
声明 [源]
void
gdk_pixbuf_composite (
const GdkPixbuf* src,
GdkPixbuf* dest,
int dest_x,
int dest_y,
int dest_width,
int dest_height,
double offset_x,
double offset_y,
double scale_x,
double scale_y,
GdkInterpType interp_type,
int overall_alpha
)
描述 [源]
通过对源图像src进行以scale_x和scale_y为比例的比例缩放,再以offset_x和offset_y为偏移进行平移来创建一个转换。
这给出了一个以目标pixbuf坐标为坐标的图像。然后,矩形(dest_x,dest_y,dest_width,dest_height)被alpha混合到原始目标图像的相应矩形中。
当目标矩形包含源图像之外的部份时,源图像边角的数據將會無限地重复。
.
参数
dest-
类型:
惠杰Pixbuf用于渲染结果的
惠杰Pixbuf。数据由方法调用者拥有。 dest_x-
类型:
int渲染区域的左坐标。
dest_y-
类型:
int渲染区域的顶部坐标。
dest_width-
类型:
int要渲染的区域宽度。
dest_height-
类型:
int要渲染的区域高度。
offset_x-
类型:
doubleX方向上的偏移量(目前四舍五入为整数)。
offset_y-
类型:
doubleY方向上的偏移量(目前四舍五入为整数)。
scale_x-
类型:
doubleX方向上的缩放因子。
scale_y-
类型:
doubleY方向上的缩放因子。
interp_type-
类型:
GdkInterpType转换的插值类型。
overall_alpha-
类型:
int源图像的整体透明度(0..255)。