DrawBitmapPartWithOpacity draws bitmap at given location in 1/96" units. Deprecated: Newer applications should use DrawBitmapPartWithOpacityPixels.
(bmp *Bitmap, dst, src Rectangle, opacity byte)
| 339 | // |
| 340 | // Deprecated: Newer applications should use DrawBitmapPartWithOpacityPixels. |
| 341 | func (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. |
| 347 | func (c *Canvas) DrawBitmapPartWithOpacityPixels(bmp *Bitmap, dst, src Rectangle, opacity byte) error { |
no test coverage detected