Twips conversions

B

Bill

Anyone have the story on twip conversion
problems?

An image control shows width at 1.4 inches
and height at 1.6701 inches. And, Debug
Print, in the OnOpen code, of ImageWidth
and ImageHeight show 2804 and 3419
respectively. Since 2804/1440 = 1.9472
and 3419/1440 = 2.3743, there's obviously
something astray........might be me of course.

Bill
 
S

Stephen Lebans

InsideHeight and InsideWidth props are the dimensions of the Image currently
displayed in the Image control and not the control itself.

You should be loading/resizing/whatever in the Format, or if no resizing is
required, the Print event of the Section containing the Image control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
B

Bill

I'm not quite sure I follow Stephen. The image path for
the image being "stretched" is set in the Detail_Format
at runtime. There are 10's of images being placed in
each name-tag being formatted. The user has already
created a companion image file and settled on an
aspect ratio suitable to his/her needs and my code is
wanting to set the aspect ratio of the control so that
the image won't be distorted. Having said that, are
your comments applicable to this situation?

Thanks,
Bill
 
S

Stephen Lebans

After you load each image, set the Image control's dimensions to the
ImageWidth and ImageHeight props.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
B

Bill

Thanks Stephen, I understand what you're saying. However,
that still doesn't get the job done, in that I still have to apply
the aspect ratio determined by the user that's stored in an
application setup table.

In this application, there are three different locations where
the user will want to see the image. Because of space constraints,
particularly on the name tags, I have to impose a FIXED WIDTH
in each case and allow the user a min/max range of aspect ratios that
are acceptable, lest forms and reports overflow their established
bounds.

My approach was to multiply the control's width in each case of
display such that the image that stretched into the control would
not be distorted.

In what you've told me, it's not clear how I can carry out the
multiplication of the width expressed in twips if the 1440twips/inch
cannot be applied. That is, I need to be able to size the height of
the control given the fixed width at design time.

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top