Exemple #1
0
func (b *Bitmap) Save(fname string) {
	cfname := C.CString(fname)
	defer C.free(unsafe.Pointer(cfname))

	C.al_save_bitmap(cfname, (*C.ALLEGRO_BITMAP)(b))

}
Exemple #2
0
func (b *Bitmap) Save(fileName string) bool {
	f := C.CString(fileName)
	defer C.free(unsafe.Pointer(f))
	return bool(C.al_save_bitmap(f, (*C.ALLEGRO_BITMAP)(unsafe.Pointer(b))))
}