www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/22/05:46:47

From: George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro loads graphics funny...
Date: 22 Nov 1997 00:11:44 GMT
Organization: Oxford University, England
Lines: 19
Message-ID: <655800$ilq$2@news.ox.ac.uk>
References: <19971121054501 DOT AAA13467 AT ladder02 DOT news DOT aol DOT com>
NNTP-Posting-Host: sable.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On 21 Nov 1997 05:45:22 GMT in comp.os.msdos.djgpp KillFerFun <killferfun AT aol DOT com> wrote:

: Im using graphic files in my programs (BMP, TGA) but when I load
: them, they are much larger than I expected. So I reduce the size of
: the image, but by the time Allegro has displayed the image the way I
: want it, Ive reduced the image so much that all of its clarity has
: been lost. Since Im kinda new to this stuff, Im not sure exactly
: what I should do. Should I change screen modes? Will stretchblit
: work? Any help is appreciated...

Changing up in resolution will mean that more of your picture fits on
the screen.  The stretchblit function can indeed be used to reduce the
images' sizes on the fly, but it will reduce their quality too.  What
paint program did you make them in?  The real answer is to tell the
paint program to make them a certain size in pixels, so that they'll
fit properly on the screen in whatever mode your own program is using.

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

- Raw text -


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