Storing an image in a variable

I would like to be able to do something like

Dim myImage as Image

and then load an image from a file into myImage.
How is this done
DennisKeelingAsked:
Who is Participating?
 
_agj_Connect With a Mentor Commented:
use an image/picturebox control.

u can then use the loadpicture function to load from a file.
0
 
mladenoviczConnect With a Mentor Commented:
Dim p As IPictureDisp
Set p = LoadPicture("c:\pic.jpg")
Set Picture1.Picture = p
0
 
nichiaCommented:
Dennis?
0
All Courses

From novice to tech pro — start learning today.