www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/18/19:53:49

Xref: news2.mv.net comp.os.msdos.djgpp:5143
From: stwand07 AT uctvms DOT uct DOT ac DOT za
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro's Grabber
Date: 18 Jun 96 22:13:10 +0200
Organization: University of Cape Town
Lines: 31
Message-ID: <1996Jun18.221310@uctvms.uct.ac.za>
References: <835052153snz AT flag DOT demon DOT co DOT uk> <4q5cum$8r3 AT doc DOT zippo DOT com> <jpjlohltb8k DOT fsf AT piglet DOT cam DOT cornell DOT edu>
NNTP-Posting-Host: uctvms.uct.ac.za
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <jpjlohltb8k DOT fsf AT piglet DOT cam DOT cornell DOT edu>, brian AT piglet DOT cam DOT cornell DOT edu (Brian Kelley) writes:
>>>>>> "nkopp" == nkopp  <nkopp AT grfn DOT org> writes:
> 
>     nkopp> In article <835052153snz AT flag DOT demon DOT co DOT uk>, Ben says...
>     >>  Hi All,
>     >> 
>     >> I just designed a few nice images to be used as sprites in the
>     >> Allegro library.
>     >> 
>     >> I saved the screen as a 320 x 200 256 colour PCX file.  However,
>     >> upon loading it in to the grabber program, when trying to grab an
>     >> image from the PCX file, the dotted box seems to be on a grid, not
>     >> allowing me to cut my images out properly.  Is there any way to fix
>     >> this?  I looked at the code for the grabber routine, but couldn't
>     >> find a way around this.
>     >> 
>     >> Any ideas would be appreciated.
>     >> 

The grabber does seems to use a "snap grid" when selecting what part of the PCX
bitmap to cut, so you must either ensure the PCX is the size of one sprite, as
a previous poster mentioned. This seems a bit wasteful, especially since most
sprites will be using the same palette, and could be stored more efficiently in
one PCX. There is no reason why you shouldn't be able to grab ANY part of the
bitmap, and changing this should be easy - if you don't mind hacking Shawn's
Grabber utility a bit.

Perhaps the new version should allow grabbing any part Shawn?

Adios
Mark.

- Raw text -


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