Esempio n. 1
0
func ZoomSurfaceSize(width, height int, zoomx, zoomy float64) (dstwidth int, dstheight int) {
	_width := C.int(width)
	_height := C.int(height)
	_zoomx := C.double(zoomx)
	_zoomy := C.double(zoomy)
	_dstwidth := (*C.int)(unsafe.Pointer(&dstwidth))
	_dstheight := (*C.int)(unsafe.Pointer(&dstheight))
	C.zoomSurfaceSize(_width, _height, _zoomx, _zoomy, _dstwidth, _dstheight)
	return dstwidth, dstheight
}
Esempio n. 2
0
func ZoomSurfaceSize(width, height int, zoomx, zoomy float64) (dstwidth, dstheight int) {
	var dw, dh C.int
	C.zoomSurfaceSize(C.int(width), C.int(height), C.double(zoomx), C.double(zoomy), &dw, &dh)
	return int(dw), int(dh)
}