backcountryprogrammer
New member
- Local time
- Today, 02:43
- Joined
- Aug 10, 2024
- Messages
- 24
Need some advice (I'm new to Access).
As far as I understand, objects of the Image class display pictures on a form. The standard way to set a picture dynamically from VBA seems to be to set the Picture property to a file name of an image. Then there's also the PictureData property that seem to allow for copying image data withing VBA. Typename on PictureData tells me it is a byte array.
Lets say I get my image data from an external DLL and place it in a byte array, would it be possible to initialize PicureData from it? Obviously, PictureData expects the data to be in a certain format. Is this just the image format (e.g. BMP, JPG or whatever it supports) or some kind of undocumented format?
Of course I could write the byte array to disk and set the Picture property to the filename but it'd would be nicer to set PictureData directly.
Thanks for your input.
As far as I understand, objects of the Image class display pictures on a form. The standard way to set a picture dynamically from VBA seems to be to set the Picture property to a file name of an image. Then there's also the PictureData property that seem to allow for copying image data withing VBA. Typename on PictureData tells me it is a byte array.
Lets say I get my image data from an external DLL and place it in a byte array, would it be possible to initialize PicureData from it? Obviously, PictureData expects the data to be in a certain format. Is this just the image format (e.g. BMP, JPG or whatever it supports) or some kind of undocumented format?
Of course I could write the byte array to disk and set the Picture property to the filename but it'd would be nicer to set PictureData directly.
Thanks for your input.