The question here explains nicely how to convert a picture box image to a byte array in VB6. I want to do the reverse and load my picture box image from a byte array.
<The Size
argument is the total number of bytes that comprise the image in the array, Offset
is the index of the array where the data begins, this allows a single array to store multiple images.
If the array contains a single image only, pass it's LBound
for Offset
and UBound - LBound + 1
for Size
.