[EMAIL PROTECTED] (Christoph Egger) writes:

> On Thu, 8 Mar 2001, Tijs van Bakel wrote:
> > i have coded a simple ggiPutBox() variant that doubles (or triples,
> > &c) all pixels.  this is very useful (to me) for displaying 320x200
> > applications in higher resolutions.
> > 
> > a few questions are troubling my mind for making a useful ggi
> > extension out of this.
> > 
> > imho it would be best if i could use this routine in conjunction with
> > other targets, so that all previous ggi applications can be scaled
> > without having to recompile the code.  question 1: is this possible?
> 
> Yep. libblit should provide something like a ggiBltStretchBlit().

perhaps i haven't formulated the question well.  i wondered if i could
make a target such as 'palemu' but then for pixel doubling.  if so,
could i write this as an extension?

> Internally it can make use of your code very well. But
> note: The stretching must work in _any_ direction, not only from
> lower to higher resolutions. Just think of stretching an image from
> 640x480 to 800x400 resolution. You see, what I mean?

yes.  as i point out somewhere else, there are 2 types of zooming.
the pixel doubling routine could be made much faster, and will always
retain all pixels.  both routines are useful.

-- 
Tijs van Bakel, <[EMAIL PROTECTED]>

Reply via email to