DrawBitmapPartWithOpacityPixels draws bitmap at given location in native pixels.
(bmp *Bitmap, dst, src Rectangle, opacity byte)
| 345 | |
| 346 | // DrawBitmapPartWithOpacityPixels draws bitmap at given location in native pixels. |
| 347 | func (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 | // |
no test coverage detected