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

Method DrawBitmapPartWithOpacityPixels

canvas.go:347–353  ·  view source on GitHub ↗

DrawBitmapPartWithOpacityPixels draws bitmap at given location in native pixels.

(bmp *Bitmap, dst, src Rectangle, opacity byte)

Source from the content-addressed store, hash-verified

345
346// DrawBitmapPartWithOpacityPixels draws bitmap at given location in native pixels.
347func (c *Canvas) DrawBitmapPartWithOpacityPixels(bmp *Bitmap, dst, src Rectangle, opacity byte) error {
348 if bmp == nil {
349 return newError("bmp cannot be nil")
350 }
351
352 return bmp.alphaBlendPart(c.hdc, dst, src, opacity)
353}
354
355// DrawLine draws a line between two points in 1/96" units.
356//

Callers 2

DrawBitmapPartMethod · 0.95

Calls 2

newErrorFunction · 0.85
alphaBlendPartMethod · 0.80

Tested by

no test coverage detected