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

Method DrawBitmapPartWithOpacity

canvas.go:341–344  ·  view source on GitHub ↗

DrawBitmapPartWithOpacity draws bitmap at given location in 1/96" units. Deprecated: Newer applications should use DrawBitmapPartWithOpacityPixels.

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

Source from the content-addressed store, hash-verified

339//
340// Deprecated: Newer applications should use DrawBitmapPartWithOpacityPixels.
341func (c *Canvas) DrawBitmapPartWithOpacity(bmp *Bitmap, dst, src Rectangle, opacity byte) error {
342 dpi := c.DPI()
343 return c.DrawBitmapPartWithOpacityPixels(bmp, RectangleFrom96DPI(dst, dpi), RectangleFrom96DPI(src, dpi), opacity)
344}
345
346// DrawBitmapPartWithOpacityPixels draws bitmap at given location in native pixels.
347func (c *Canvas) DrawBitmapPartWithOpacityPixels(bmp *Bitmap, dst, src Rectangle, opacity byte) error {

Callers 1

mainFunction · 0.80

Calls 3

DPIMethod · 0.95
RectangleFrom96DPIFunction · 0.85

Tested by

no test coverage detected