www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/03/11:00:54

Message-Id: <m0ys7GP-000S3nC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: "Ronald Pati o G" <logan AT cue DOT satnet DOT net>, djgpp AT delorie DOT com
Date: Fri, 3 Jul 1998 12:03:23 +0000
MIME-Version: 1.0
Subject: Re: Scaling an image
In-reply-to: <359CE6DA.AA086A45@cue.satnet.net>

"Ronald Patiño G" <logan AT cue DOT satnet DOT net> wrote:

> Hi,I'm using allegro's routine to load graphicas file , and got a
> question. I got a 320*200 pcx file, but i need to draw it, lets say  in
> 640*400, how can i scale so that it fill the whole screen in the same
> way it did in 320 * 200?.
> 
> Is there any way allegro can do it, or do i have to write a routine to
> perform this scaling, or is there other way i can do it.

Use stretch_blit, see ex18.c for an example.

SET 
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019