XU XUv0.8.8
中文

API

#image/draw

import: #image/draw

counts: 1 fns, 0 methods, 0 types, 2 consts, 0 ifaces

SRC/OVER drawing on RGBA.

const op_over

XuAPI
pub const op_over = 0

Purpose

Porter-Duff Src/Over on image.RGBA, aligned with `image/draw`. No Image/draw.Image interface; no mask. Value `0`.

Parameters

none

const op_src

XuAPI
pub const op_src = 1

Purpose

Public constant `op_src`. Value `1`.

Parameters

none

draw_rgba

XuAPI
pub fn draw_rgba(dst &mut image.RGBA, r0 image.Rectangle, src &image.RGBA, sp0 image.Point, op int)

Purpose

Draw rgba.

Parameters

dst &mut image.RGBA
destination (exclusive borrow; type &mut image.RGBA)
r0 image.Rectangle
r0 (image.Rectangle)
src &image.RGBA
source (borrowed; caller keeps it; type &image.RGBA)
sp0 image.Point
sp0 (image.Point)
op int
op (int)