just had a thought which may be werth pursuing if you're desperate for exact
relative dimensions in MI.

there are API's available which will control the size of an application.  if
you figger out how much of the application window a maximized map takes up,
you can use the API to modify the size of the MI application to suit... with
some system metrics and twips-per-pixel calculations.

anywho, just a brainfart.

-----Original Message-----
From: Simmonds, Ashley (DTUP) [mailto:[EMAIL PROTECTED]
Sent: Thursday, 29 July 2004 12:38 PM
To: [EMAIL PROTECTED]
Subject: RE: MI-L MB: Save Window command


ah yes, the relative dimensions of the output image will be based on the
size of the map window.

one way to get it exact is to keep altering the size of the map window and
using the save window as command to see what size it currently is, and
messing around until it's the size you want.  i don't believe there's a
command to change the size of the window itself.

that said, i fergot this is an issue as my app with integrated mapping (in
access) has a pixel-perfect resize command, so before saving a window i can
specify exact sizes for the map... so far i've tried up to around 4000
pixels without a major hassle.

i'm not sure that this functionality is transferable to MI due to MI being
within a strictly controlled placeholder on an access form.

does anyone know of a method of exactly sizing a map window?

-----Original Message-----
From: SCISOFT [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 28 July 2004 5:46 PM
To: 'Jaromir Svasta'; [EMAIL PROTECTED]
Subject: RE: MI-L MB: Save Window command


Sorry, that should be ".. the W is as expected (10 inches x 96 dots per
inch) but the H should be 750 pixels, not 720.

Seems like a MI bug.


> -----Original Message-----
> From: SCISOFT [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 28 July 2004 4:10 PM
> To: 'Jaromir Svasta'; [EMAIL PROTECTED]
> Subject: RE: MI-L MB: Save Window command
> 
> Jaromir
> I've just tried this with the MapBasic window using the following
> statement
> -
> Save  Window  FrontWindow() As  "C:\test.bmp"
> Type  "BMP"
> Width 10 Units "in"
> Height 7.5 Units "in"
> 
> .. without the clause "Resolution 80" because it gave me an error:
> "unrecognized command: resolution" - maybe because my MI version is 6.5
> 
> But the resulting BMP file when opened with Irfanview, shows that it is
> indeed 96dpi x 96dpi and of size 960 x 720 pixels - the H is as expected
> (10
> inches x 96 dots per inch) but the W should be 750 pixels, not 720.
> I confirm that it is the same for a JPEG filetype.
> 
> Ian Thomas
> GeoSciSoft - Perth, Australia
> 
> 
> > -----Original Message-----
> > From: Jaromir Svasta [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, 28 July 2004 2:48 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: MI-L MB: Save Window command
> >
> > Thanks, Ashley, but I am still unable to save a bitmap at the size I
> want.
> > I changed DPI to 96 as you suggested, with no help. What units of
> measure
> > should I use in the Save Window command when saving a map? I tried to
> use
> > "pt" thinking that "points" are the same as "dots", but wrong again...
> How
> > to save an image at exact size of, let's say, 600X400 pixels?
> >
> > Thank you!
> >
> > Jaromir
> >
> > On Wed, 28 Jul 2004 10:49:01 +0930, Simmonds, Ashley (DTUP)
> > <[EMAIL PROTECTED]> wrote:
> >
> > > it's to do with your DPI settings.
> > >
> > > it's been a long time since i learnt all that stuff, but basically DPI
> > is
> > > irrelevant for images for a display screen, all that matters is the
> > > number
> > > of pixels.  i think MI tries to fudge the figgers based on old-school
> > > thinking, but in the end leave your settings at the default 96 DPI and
> > > change stuff based on how big you want the image.
> > >
> > > check out the following page for more info:
> > > http://www.nicholsonprints.com/Articles/dpi.htm
> > >
> > > -----Original Message-----
> > > From: Jaromir Svasta [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, 27 July 2004 8:26 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: MI-L MB: Save Window command
> > >
> > >
> > > I saved a mapper window into BMP using Save Window command. I
> specified
> > > the width and height (9.03661 X 5.90332 inch, 100 DPI). Why the
> > > dimensions
> > > of the resulting bitmap are different (9.14 X 5.97 inch)? Is it a bug
> or
> > > am I missing something?
> > >
> > > The command used:
> > >
> > > Save  Window  iWinID
> > >   As  sImagePath
> > >   Type  "BMP"
> > >   Width fWidth Units "in"
> > >   Height fHeight Units "in"
> > >   Resolution iDPI
> > >
> >
> >
> > ---------------------------------------------------------------------
> > List hosting provided by Directions Magazine | www.directionsmag.com |
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > Message number: 12765
> 
> 
> 
> ---------------------------------------------------------------------
> List hosting provided by Directions Magazine | www.directionsmag.com |
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> Message number: 12767



---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 12768

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 12785

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 12786

Reply via email to