Frees all resources associated with the drawing wand. Once the drawing wand has been freed, it should not be used and further unless it re-allocated.
()
| 34 | // Frees all resources associated with the drawing wand. Once the drawing wand |
| 35 | // has been freed, it should not be used and further unless it re-allocated. |
| 36 | func (dw *DrawingWand) Destroy() { |
| 37 | if dw.dw == nil { |
| 38 | return |
| 39 | } |
| 40 | dw.dw = C.DestroyDrawingWand(dw.dw) |
| 41 | C.free(unsafe.Pointer(dw.dw)) |
| 42 | dw.dw = nil |
| 43 | |
| 44 | } |
| 45 | |
| 46 | // Adjusts the current affine transformation matrix with the specified affine |
| 47 | // transformation matrix. Note that the current affine transform is adjusted |
no outgoing calls
no test coverage detected