NewBitmapWithTransparentPixels creates a transparent bitmap with given size in 1/96" units at screen DPI. Deprecated: Newer applications should use NewBitmapWithTransparentPixelsForDPI.
(size Size)
| 65 | // |
| 66 | // Deprecated: Newer applications should use NewBitmapWithTransparentPixelsForDPI. |
| 67 | func NewBitmapWithTransparentPixels(size Size) (*Bitmap, error) { |
| 68 | dpi := screenDPI() |
| 69 | return newBitmap(SizeFrom96DPI(size, dpi), true, dpi) |
| 70 | } |
| 71 | |
| 72 | // NewBitmapWithTransparentPixelsForDPI creates a transparent bitmap with given size in native pixels and DPI. |
| 73 | func NewBitmapWithTransparentPixelsForDPI(size Size, dpi int) (*Bitmap, error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…