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)
| 2168 | // (copy-on-write requires extra care in a threaded context). |
| 2169 | // Calling SetCopyOnWrite(true) on a bitmap created with FromBuffer is unsafe. |
| 2170 | func (rb *Bitmap) SetCopyOnWrite(val bool) { |
| 2171 | rb.highlowcontainer.copyOnWrite = val |
| 2172 | } |
| 2173 | |
| 2174 | // GetCopyOnWrite gets this bitmap's copy-on-write property |
| 2175 | func (rb *Bitmap) GetCopyOnWrite() (val bool) { |
no outgoing calls