Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AffineTransformIdentity = AffineTransform{
1, 0, 0, 1, 0, 0,
}
AffineTransformIdentity represents the identity matrix.
Functions ¶
This section is empty.
Types ¶
type AffineTransform ¶
The CGAffineTransform struct is a Go equivalent to the type of the same name provided by Core Graphics.
type Float ¶
type Float float64
Float is a floating point type used to represent numberic values in Core Graphics.
type ImageRef ¶
The ImageRef type is a reference to a Core Graphics image object.
func ImageCreate ¶
ImageCreate creates a new Core Graphics image object that represents the same content than the Go image passed as argument.
The image content is copied by the funciton, it's the program's responsibility to free the resources allocated by the returned ImageRef with a call to CFRelease.
The function supports any image types defined in the standard image package, but will panic if the program attempts to create a ImageRef from an unsupported value.
https://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGImage/
func ImageCreateNoCopy ¶
ImageCreateNoCopy creates a new Core Graphics image object that represents the same content than the Go image passed as argument.
The image content is shared between the Go and Core Graphics images, so the program must ensure that the image.Image value it passed to the function is referenced and unmodified for as long as the returned ImageRef is in use. It's the program's responsibility to free the resources allocated by the returned ImageRef with a call to CFRelease.
The function supports any image types defined in the standard image package, but will panic if the program attempts to create a ImageRef from an unsupported value.
https://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGImage/
func (ImageRef) Release ¶
func (img ImageRef) Release()
Release decreases the reference counter of the Core Graphics image passed as argument.