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

Method alphaBlend

bitmap.go:411–413  ·  view source on GitHub ↗

alphaBlend displays bitmaps that have transparent or semitransparent pixels. bounds is represented in native pixels.

(hdc win.HDC, bounds Rectangle, opacity byte)

Source from the content-addressed store, hash-verified

409
410// alphaBlend displays bitmaps that have transparent or semitransparent pixels. bounds is represented in native pixels.
411func (bmp *Bitmap) alphaBlend(hdc win.HDC, bounds Rectangle, opacity byte) error {
412 return bmp.alphaBlendPart(hdc, bounds, Rectangle{0, 0, bmp.size.Width, bmp.size.Height}, opacity)
413}
414
415// alphaBlendPart displays bitmaps that have transparent or semitransparent pixels. dst and src are
416// represented in native pixels.

Callers 2

drawStretchedMethod · 0.95

Calls 1

alphaBlendPartMethod · 0.95

Tested by

no test coverage detected