bitmap

Converting a massive into a 3 dimensional bitmap

Converting a massive into a 3 dimensional bitmap Question: Problem I need this massive to serve as an input (for C based arduino). This is our massive from the example above in the required format: const byte bitmap[8][8] = { {0xFF, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0xFF}, {0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, …

Total answers: 3

How can I convert canvas content to an image?

How can I convert canvas content to an image? Question: from Tkinter import * root = Tk() cv = Canvas(root) cv.create_rectangle(10,10,50,50) cv.pack() root.mainloop() I want to convert canvas content to a bitmap or other image, and then do other operations, such as rotating or scaling the image, or changing its coordinates. Bitmaps can improve efficiency …

Total answers: 6