MCPcopy Create free account
hub / github.com/lxn/walk / NewBitmapWithTransparentPixelsForDPI

Function NewBitmapWithTransparentPixelsForDPI

bitmap.go:73–75  ·  view source on GitHub ↗

NewBitmapWithTransparentPixelsForDPI creates a transparent bitmap with given size in native pixels and DPI.

(size Size, dpi int)

Source from the content-addressed store, hash-verified

71
72// NewBitmapWithTransparentPixelsForDPI creates a transparent bitmap with given size in native pixels and DPI.
73func 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.
78func newBitmap(size Size, transparent bool, dpi int) (bmp *Bitmap, err error) {

Callers 2

bitmapForDPIMethod · 0.85

Calls 1

newBitmapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…