Solved

picture size

Posted on 1998-08-20
2
140 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

911 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

21 Experts available now in Live!

Get 1:1 Help Now