MCPcopy Create free account
hub / github.com/lxn/walk / Dispose

Method Dispose

bitmap.go:381–391  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

379}
380
381func (bmp *Bitmap) Dispose() {
382 if bmp.hBmp != 0 {
383 win.DeleteObject(win.HGDIOBJ(bmp.hBmp))
384
385 win.GlobalUnlock(bmp.hPackedDIB)
386 win.GlobalFree(bmp.hPackedDIB)
387
388 bmp.hPackedDIB = 0
389 bmp.hBmp = 0
390 }
391}
392
393// Size returns bitmap size in 1/96" units.
394func (bmp *Bitmap) Size() Size {

Callers 2

createBitmapFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected