SetCopyOnWrite sets this bitmap to use copy-on-write so that copies are fast and memory conscious if the parameter is true, otherwise we leave the default where hard copies are made (copy-on-write requires extra care in a threaded context). Calling SetCopyOnWrite(true) on a bitmap created with FromB
(val bool)
| 1185 | // (copy-on-write requires extra care in a threaded context). |
| 1186 | // Calling SetCopyOnWrite(true) on a bitmap created with FromBuffer is unsafe. |
| 1187 | func (rb *Bitmap) SetCopyOnWrite(val bool) { |
| 1188 | rb.highlowcontainer.copyOnWrite = val |
| 1189 | } |
| 1190 | |
| 1191 | // GetCopyOnWrite gets this bitmap's copy-on-write property |
| 1192 | func (rb *Bitmap) GetCopyOnWrite() (val bool) { |
no outgoing calls