Solved

picture size

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

837 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