Solved

Sizing JPEG files in Twips?  Pixels?

Posted on 1998-09-05
11
328 Views
Last Modified: 2010-04-30
I would like to load jpeg files into a fixed area on a form.
The area is 9870 wide * 7920 wide in Twips.  Someone else is taking the photos and they asked me how many pixels the pictures should be.  I thought that pixels were hardware dependant.  What information do i need to give them so that the pictures will fit in to my dedicated photo area.  I have never taken digital photos and i do not know what the criteria is in sizing them.
0
Comment
Question by:emidiod
  • 8
  • 3
11 Comments
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1433199
Hi,
There are 1440 pixels in one inch.
0
 

Author Comment

by:emidiod
ID: 1433200
I thought there were 1440 twips per logical inch?  Anyways how do i get the pictures taken so that they will fit into my area which is 9870 * 7920 twips wide?

The following is from the VB Help file on ScaleMode

object.ScaleMode [= value]

The ScaleMode property syntax has these parts:

Part      Description
object      An object expression that evaluates to an object in the Applies To list.
value      An integer specifying the unit of measurement, as described in Settings.
Settings

The settings for value are:

Constant      Setting      Description
vbUser      0      Indicates that one or more of the ScaleHeight, ScaleWidth, ScaleLeft, and ScaleTop properties are set to custom values.
VbTwips      1      (Default) Twip (1440 twips per logical inch; 567 twips per logical centimeter).
VbPoints      2      Point (72 points per logical inch).
VbPixels      3      Pixel (smallest unit of monitor or printer resolution).
vbCharacters      4      Character (horizontal = 120 twips per unit; vertical = 240 twips per unit).
VbInches      5      Inch.
VbMillimeters      6      Millimeter.
VbCentimeters      7      Centimeter.
0
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1433201
correction:
internal measurement system is in twips, where there are 1440 twips per inch, so we actually need to measure in twips.
If you are using centimeters for your system unit of measure there are 567 twips per centimeter,
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 
LVL 3

Expert Comment

by:a111a111a111
ID: 1433202
make it autosize = true
0
 

Author Comment

by:emidiod
ID: 1433203
Thanks a111a111a111:
I appreciate you help but I realize this.  I think you are missing my question.  I would like to know what info is needed for the camera guy to take pictures that will fit the size I need with no adjustments from my VB app.  
0
 
LVL 3

Accepted Solution

by:
a111a111a111 earned 50 total points
ID: 1433204
Okay sorry.
you need

W= 658
H=  528

it /15
0
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1433205
For example take any bmp check its H and W and then place it into VB picture box
and see the H and W there it will be X 15.


0
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1433206
So if a VB picture area is 1500X1500 you need a picture size 100X100 from the scanner.
0
 

Author Comment

by:emidiod
ID: 1433207
Thanks:
What units are we talking here (ie in VB i'm assuming the 1500*1500 is in twips, what are the units of the 100*100 scanned image)
0
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1433208
Yes 1500 are twips and 100 are the standard windows pixel size.
0
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1433209
You can change the properties in your VB picture box to be twip or pixel or inch
or centimeter and so.

look at the properties of the image /  picture box.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Title # Comments Views Activity
Access 2013 combo box not working 3 51
TT Auto Dashboard 13 95
VB6 ListBox Question 4 48
VB6 - Scroll Mouse wheel on Picturebox 13 70
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

809 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