Index: [thread] [date] [subject] [author]
  From: Marcus Sundberg <mackan@stacken.kth.se>
  To  : ggi-develop@eskimo.com
  Date: Sat, 26 Jun 1999 00:05:01 +0000

Re: pitch

Garrett B wrote:
> 
> If I create a surface

What do you mean by that?

> backvis=ggiOpen("memory");
> ggiSetGraphMode(backvis, ...);
> 
> and then access it to write a picture or something to it will I ever have to
> worry about the pitch and if so how do I find it? ie if I declare a visual of
> 800x600 and i go to write a picture to it will I have to write the first 800
> pixels, then add the pitch to get the memory location of the beginning of the
> next line?

If you use DirectBuffer you'll find all the necessary info in the DB
struct, otherwise the stride is not relevant.

//Marcus
-- 
-------------------------------+------------------------------------
        Marcus Sundberg        | http://www.stacken.kth.se/~mackan/
 Royal Institute of Technology |       Phone: +46 707 295404
       Stockholm, Sweden       |   E-Mail: mackan@stacken.kth.se

Index: [thread] [date] [subject] [author]