convert variant to image

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rhyme2ri2
    New Member
    • Dec 2006
    • 21

    convert variant to image

    Hello all,
    how can i convert a variant data type into image. Actually i am retrieving an image from CCD (camera) which is in variant format. Now i want to display this image in picture/image box.(that is what i thought cud b one way ; feel free to suggest some other way of displaying my image). How can i convert this variant type to image.

    Any help wud b appreciated

    Thanks & Regards
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    I'm not sure there's actually any conversion to be done. You see, Variant isn't really a data type at all. It's more like a "bucket" into which you can place any data type you want. I'd say you need to start by determining what format the image is in, within that variant.

    It would be helpful if we had some more detail such as what version of VB you're using (I'm guessing VB6, from the use of Variant), how you're getting this Variant value, and so on. Perhaps you could show us the code where the Variant is populated.

    Comment

    Working...