I have a simple question. How to create a form with a Picture control in Python?
In Visual Basic it is easy. Here the VB code:
Code: Alles auswählen
Private Sub Command1_Click()
Set p = CreateObject("PinPoint.Plate")
Set m = p.NewPlateDIB()
m.Create 1, 1, 1, 1
m.Render 3600, 2700
I need to create a PictureBox (Picture1.hDC) in python.
PaintPicture() paints the bitmap in the PlateDIB object onto a bitmap in some other Windows Graphics Device Interface device. From Visual Basic, you can paint into a Picture control. For example, suppose you have a form with a Picture control on it named picImage, and a PlateDIB object that has been Create()ed and Render()ed named pdM104: