picture size

how do i know the picture size using VB code ? assume that i have the BMP size 100 x 100 x 16M, how to get this information using VB ?
Who is Participating?
lbkConnect With a Mentor Commented:
Load it into an image control whose AutoSize property is TRUE, then get its scalewidth and scaleheight property. Convert it to the unit you need using the image boxes' ScaleX(), resp. ScaleY() functions
qazwsxedcAuthor Commented:
sorry...please paste some example code..here..i cannt understand you..assume that i get the picture file from commondialog.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.