NewBitmapWithTransparentPixelsForDPI creates a transparent bitmap with given size in native pixels and DPI.
(size Size, dpi int)
| 71 | |
| 72 | // NewBitmapWithTransparentPixelsForDPI creates a transparent bitmap with given size in native pixels and DPI. |
| 73 | func NewBitmapWithTransparentPixelsForDPI(size Size, dpi int) (*Bitmap, error) { |
| 74 | return newBitmap(size, true, dpi) |
| 75 | } |
| 76 | |
| 77 | // newBitmap creates a bitmap with given size in native pixels and DPI. |
| 78 | func newBitmap(size Size, transparent bool, dpi int) (bmp *Bitmap, err error) { |
no test coverage detected
searching dependent graphs…