方法
GtkSnapshotappend_scaled_texture
自 4.10
声明 [源]
void
gtk_snapshot_append_scaled_texture (
GtkSnapshot* snapshot,
GdkTexture* texture,
GskScalingFilter filter,
const graphene_rect_t* bounds
)
描述 [源]
创建一个新的渲染节点,将给定的纹理 texture 绘制到指定的 bounds,然后将它附加到当前 snapshot 的渲染节点。
与 gtk_snapshot_append_texture() 相比,此函数提供了在缩放时如何使用过滤器控制的权限。
自从:4.10
参数
texture-
类型:
GdkTexture要渲染的纹理。
数据由方法的调用者所有。 filter-
类型:
GskScalingFilter要使用的过滤器。
bounds-
类型:
graphene_rect_t新节点的外部区域。
数据由方法的调用者所有。