Esempio n. 1
0
func (w *Window) DrawImage(a Array, props AFCell) error {
	aferr := C.af_draw_image(w.window, (C.af_array)(a._array), (*C.af_cell)(&props))
	if aferr != 0 {
		return ErrDrawImage
	}
	return nil
}
Esempio n. 2
0
func (w *Window) DrawImage(a Array, props Cell) error {
	return af_call(C.af_draw_image(w.window, (C.af_array)(a.arr), (*C.af_cell)(&props)))
}