MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / DrawFilledBitmap

Function DrawFilledBitmap

gui/utils/draw.py:23–34  ·  view source on GitHub ↗
(width, height, color)

Source from the content-addressed store, hash-verified

21
22
23def DrawFilledBitmap(width, height, color):
24 canvas = wx.Bitmap(round(width), round(height))
25
26 mdc = wx.MemoryDC()
27 mdc.SelectObject(canvas)
28
29 mdc.SetBackground(wx.Brush(color))
30 mdc.Clear()
31
32 mdc.SelectObject(wx.NullBitmap)
33
34 return canvas
35
36
37def DrawGradientBar(width, height, gStart, gEnd, gMid=None, fillRatio=4):

Callers 1

RenderGradientBarFunction · 0.85

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected