NewBitmap creates an opaque bitmap with given size in 1/96" units at screen DPI. Deprecated: Newer applications should use NewBitmapForDPI.
(size Size)
| 52 | // |
| 53 | // Deprecated: Newer applications should use NewBitmapForDPI. |
| 54 | func NewBitmap(size Size) (*Bitmap, error) { |
| 55 | dpi := screenDPI() |
| 56 | return newBitmap(SizeFrom96DPI(size, dpi), false, dpi) |
| 57 | } |
| 58 | |
| 59 | // NewBitmapForDPI creates an opaque bitmap with given size in native pixels and DPI. |
| 60 | func NewBitmapForDPI(size Size, dpi int) (*Bitmap, error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…