Hi,
Right now I have this. And I could not understand how to sort it out:

def onView(self):
        img = wx.EmptyImage(240,240)
        filepath = self.filedlg.GetPath()
        img = wx.Image(filepath, wx.BITMAP_TYPE_ANY)

        img = img.Scale(240,240)
        
        picture = ogl.BitmapShape()
        picture.SetBitmap(wx.BitmapFromImage(img))
        self.canvas.AddShape(picture)

I want to load an image with fileDialog into a wx ogl canvas.

Thanks in advance
Regards

Re: load image in ogl canvas??? 80 80

Never mind. Just sort it out :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.