Initialize the pixel_buffer on creation to avoid having any "garbage"
drawn as background.
# are bugs regarding bitmaps with alpha channels and MemoryDC
self.grid_buffer = self.loadGrid("res/grid.png")
# are bugs regarding bitmaps with alpha channels and MemoryDC
self.grid_buffer = self.loadGrid("res/grid.png")
- self.pixels_buffer = wx.EmptyBitmap(w, h, depth=32)
+ self.pixels_buffer = wx.EmptyBitmapRGBA(w, h, 0, 0 ,0, 255)
self.drawAllPixels()
def setPixelCoordinates(self, gc):
self.drawAllPixels()
def setPixelCoordinates(self, gc):