Пример #1
0
func LoadImage(filename string) *iup.Handle {
	cname := iup.NewCS(filename)
	defer iup.FreeCS(cname)
	return iup.NewHandle(C.IupLoadImage((*C.char)(cname)))
}
Пример #2
0
func LoadImage(file_name string) *Ihandle {
	cFile_Name := C.CString(file_name)
	defer C.free(unsafe.Pointer(cFile_Name))

	return (*Ihandle)(C.IupLoadImage(cFile_Name))
}