I have a webcam bmp that I can convert nicely to a jpg OK within my app using scraps of software I gleaned from another site.
The jpg picture at this point ends up as a simple byte array that has one element for each byte of the picture. It reduces the original file size by 20 and still gives a very good picture.
Eg if the picture size if 50,000 bytes. ? Ubound(MyArray) = 49999
When saved to a file (using Put) then read back using Loadpicture(Filename) it will show perfectly on an image box.
My problem is how to load the picture array directly into a picturebox without having to save and read it to temporary file as done in one example I found on another site.
Eg. MyPicture.Picture=MyArray obviously does not work
It would appear that Loadpicture is doing something more than just loading the file data into the picture property
How do I convert the array to a picture so I can load it to the imagebox?
I seem to remember an old post that had a suggestion something like this but I cant find it.
The jpg picture at this point ends up as a simple byte array that has one element for each byte of the picture. It reduces the original file size by 20 and still gives a very good picture.
Eg if the picture size if 50,000 bytes. ? Ubound(MyArray) = 49999
When saved to a file (using Put) then read back using Loadpicture(Filename) it will show perfectly on an image box.
My problem is how to load the picture array directly into a picturebox without having to save and read it to temporary file as done in one example I found on another site.
Eg. MyPicture.Picture=MyArray obviously does not work
It would appear that Loadpicture is doing something more than just loading the file data into the picture property
How do I convert the array to a picture so I can load it to the imagebox?
I seem to remember an old post that had a suggestion something like this but I cant find it.