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

Reply via email to