• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 147
  • Last Modified:

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 ?
0
qazwsxedc
Asked:
qazwsxedc
1 Solution
 
lbkCommented:
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
0
 
qazwsxedcAuthor Commented:
sorry...please paste some example code..here..i cannt understand you..assume that i get the picture file from commondialog.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now