Solved

picture size

Posted on 1998-08-20
2
139 Views
Last Modified: 2012-05-04
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
Comment
Question by:qazwsxedc
2 Comments
 
LVL 1

Accepted Solution

by:
lbk earned 10 total points
ID: 1430145
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
 

Author Comment

by:qazwsxedc
ID: 1430146
sorry...please paste some example code..here..i cannt understand you..assume that i get the picture file from commondialog.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now