[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] transform.chop and image cropping



On Sat, Sep 01, 2007 at 12:54:13PM +1200, Greg Ewing wrote:
> Brian Fisher wrote:
> >  With regards to getting the min rect - basically various art
> >production tools tend to produce output where the meaningful content
> >(places where non-zero color and/or alpha values) are present is a
> >subset of the entire image.
> 
> This sounds to me like something that ought to be done
> once when you're creating the artwork, using some suitable
> tool, before the image even gets into your game. I can't
> see a reason for doing it at run time.
> 
> If it's an image generated dynamically during the game,
> however, that might be different, although I can't remember
> ever needing something like this.

Artwork can change many times during the development of a game, and as 
an artist, I often like to keep a margin around the edges of an 
image. It can make changes easier.

---
James