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

Function NewBitmapWithTransparentPixels

bitmap.go:67–70  ·  view source on GitHub ↗

NewBitmapWithTransparentPixels creates a transparent bitmap with given size in 1/96" units at screen DPI. Deprecated: Newer applications should use NewBitmapWithTransparentPixelsForDPI.

(size Size)

Source from the content-addressed store, hash-verified

65//
66// Deprecated: Newer applications should use NewBitmapWithTransparentPixelsForDPI.
67func 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.
73func NewBitmapWithTransparentPixelsForDPI(size Size, dpi int) (*Bitmap, error) {

Callers

nothing calls this directly

Calls 3

screenDPIFunction · 0.85
newBitmapFunction · 0.85
SizeFrom96DPIFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…