Example #1
0
func gdCreateFromGif(buffer []byte) *gdImage {
	return img(C.gdImageCreateFromGifPtr(C.int(len(buffer)), unsafe.Pointer(&buffer[0])))
}
Example #2
0
File: gd.go Project: eryx/go-gd
func CreateFromGifPtr(imagebuffer []byte) *Image {
	return img(C.gdImageCreateFromGifPtr(C.int(len(imagebuffer)), Pointer(&imagebuffer[0])))
}