comp.lang.ada
 help / color / mirror / Atom feed
* Graphics and JEWL
@ 2001-02-26 21:28 chris.danx
  2001-02-26 21:35 ` chris.danx
  0 siblings, 1 reply; 5+ messages in thread
From: chris.danx @ 2001-02-26 21:28 UTC (permalink / raw)



I'm having a little trouble with a graphics application i'm writing.  The
application uses JEWL 1.4 and it is to display 'bugs', the insect kind, on
the screen.  The problem is to do with the aspect ratio of graphics.  A
textual description of the bugs is found in a file and read into the system
and drawn.  The problem will be that when the bug is rotated from say north
to say west it will be drawn out of shape.

I know how to fix this in general, simply ask for the aspect ratio and
multiply by it to get the correct display size.  The problem is i don't know
how to do it for JEWL.  Is there a good estimate for most displays?  Can i
work it out?

I plan to have a square grid with each bug occupying 1 square pointing in
one of the 4 main compass directions.


Thanks,
Chris Campbell





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Graphics and JEWL
  2001-02-26 21:28 Graphics and JEWL chris.danx
@ 2001-02-26 21:35 ` chris.danx
  2001-02-27  1:11   ` tmoran
  2001-02-28 12:02   ` John English
  0 siblings, 2 replies; 5+ messages in thread
From: chris.danx @ 2001-02-26 21:35 UTC (permalink / raw)


Oh bugger, i just thought of something.  I could divide the x resolution by
y resolution or something like that.  That'd work, right?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Graphics and JEWL
  2001-02-26 21:35 ` chris.danx
@ 2001-02-27  1:11   ` tmoran
  2001-02-27 10:08     ` chris.danx
  2001-02-28 12:02   ` John English
  1 sibling, 1 reply; 5+ messages in thread
From: tmoran @ 2001-02-27  1:11 UTC (permalink / raw)


> I could divide the x resolution by y resolution or something like that.
  Remember most screens are not square.  As I recall, 4x3 is standard,
so 640x480 gives you square pixels.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Graphics and JEWL
  2001-02-27  1:11   ` tmoran
@ 2001-02-27 10:08     ` chris.danx
  0 siblings, 0 replies; 5+ messages in thread
From: chris.danx @ 2001-02-27 10:08 UTC (permalink / raw)


Thanks





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Graphics and JEWL
  2001-02-26 21:35 ` chris.danx
  2001-02-27  1:11   ` tmoran
@ 2001-02-28 12:02   ` John English
  1 sibling, 0 replies; 5+ messages in thread
From: John English @ 2001-02-28 12:02 UTC (permalink / raw)


"chris.danx" wrote:
> 
> Oh bugger, i just thought of something.  I could divide the x resolution by
> y resolution or something like that.  That'd work, right?

Pretty much. Assuming your pixels are the same width as their height,
of course.

-----------------------------------------------------------------
 John English              | mailto:je@brighton.ac.uk
 Senior Lecturer           | http://www.it.bton.ac.uk/staff/je
 Dept. of Computing        | ** NON-PROFIT CD FOR CS STUDENTS **
 University of Brighton    |    -- see http://burks.bton.ac.uk
-----------------------------------------------------------------



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-02-28 12:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-26 21:28 Graphics and JEWL chris.danx
2001-02-26 21:35 ` chris.danx
2001-02-27  1:11   ` tmoran
2001-02-27 10:08     ` chris.danx
2001-02-28 12:02   ` John English

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox