Index:
[thread]
[date]
[subject]
[author]
From: Andrew Apted <ajapted@netspace.net.au>
To : ggi-develop@eskimo.com
Date: Wed, 30 Jun 1999 12:41:18 +1000
Re: Direct Buffering was: Re: switching color depth
Garrett B writes:
> Well say Im loading an image from a file. Whats the best way to get the
> picture from the file to into a visual so I can blt it around? Just do ALOT of
> ggiPutPixel's?
If it is a memory visual, and image-load speed is not a problem, then
yeah ggiPutPixel() is the easiest way.
A faster alternative it to build one whole line at a time, and then
ggiPutHLine() it. There is only 4 cases to cover -- 1, 2, 3 or 4
bytes-per-pixel. This is what flying-ggis does.
Cheers,
___________________________________________________
\ /
Andrew Apted <ajapted@netspace.net.au> \/
Index:
[thread]
[date]
[subject]
[author]