www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/19/07:32:38

Xref: news2.mv.net comp.os.msdos.djgpp:5155
From: Ben Ashley <Ben AT flag DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro's Grabber
Date: Wed, 19 Jun 96 06:29:45 GMT
Organization: Flag Bearers
Lines: 44
Message-ID: <835165785snz@flag.demon.co.uk>
References: <Pine DOT SGI DOT 3 DOT 91 DOT 960618173249 DOT 174C-100000 AT tower DOT york DOT ac DOT uk>
Reply-To: Ben AT flag DOT demon DOT co DOT uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <Pine DOT SGI DOT 3 DOT 91 DOT 960618173249 DOT 174C-100000 AT tower DOT york DOT ac DOT uk>
           slh100 AT york DOT ac DOT uk "Shawn Hargreaves" writes:

> > 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.
> 
> I did this to make life easier, sorry if it is having the opposite 
> effect :-) My reasoning was that, given a lot of images in a single PCX 
> file (eg. I typically draw all the frames of a 32x32 character animation 
> in one PCX), without some sort of grid it would be a nightmare trying 
> to grab just the right bit of the image. If you position all your frames on 
> 16x16 grid squares, it's much easier to get the right bit of the bitmap.

Hi,

The grid system probably does make life easier.  The only reason I found it a
little strange, was because I used many grabbers like this on the Amiga, when I
was working with the AMOS language, and I used similar methods to create a
sprite/bob bank.

[Code Snipped]

Thanks, I will Rem out the two lines...

> I suppose this really ought to be configurable...

Your original method is probably much better... I'm just strange, and draw all
my little images in little white boxes of the right size :))

-- 
Cheers,

Ben                                     -=Look for "Moo-Juice" on the IRC=-

---------------------====### legal notice ###====--------------------------
Microsoft  Network  is prohibited   from  redistributing  this  work in any
form,in whole or in part.   License to distribute this post is available to
Microsoft for $499.  Posting without permission constitutes an agreement to
these terms.

- Raw text -


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