2

I'm not a VB6 developer so excuse me if I'm not making any sense.

If I have a VARIANT array of bytes containing an RGB array of image data, is it possible to get that data to be displayed in a PictureBox? The PictureBox documentation suggests that the only acceptable sources are files.

Additionally, the image size and other image information is known.

2 Answers 2

2

The PictureBox documentation lies. But unfortunately, it’s not pretty to create an IPictureDisp in memory. The following link may help you – unfortunately, it’s in German:

How to create a picture from data in memory

0
0

There may be a better (i.e. faster) method, but you should look in to the PSet method of a picture box control.

PSet method of picture box control

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.