Hi all.
I'm trying to convert a layout from PySimpleGUI to DelphiVCL.
All works fine but I was not able to put an image in an Image() component programmatically.
1] I get a frame from OpenCV VideoCamera cap with:
self.__cap = cv2.VideoCapture(0, cv2.CAP_DSHOW)
ret, frame = self.__cap.read()
2] I convert the frame to a png image with:
png_image = cv2.imencode('.png', frame)[1].tobytes()
Now with PySimpleGUI I just update it with:
view.window['image_1'].update(data=png_image)
where image_1 = sg.Image(filename='', key='image_1', size=(640, 480))
With DelphiVCL I've created a image_1 = Image(self) and assigned basic parent and props
but I don't find a way to update the img (an array of bytes with a PNG image inner).
Thank you very much for suggestions.