Re: Bitmaps

Micah Dowty <[email protected]>
Newsgroups gmane.comp.video.picogui.devel
Message-ID <[email protected]>
There are two ways to convert raw RGB data to a picogui bitmap:

 - If you want to do it as easily as possible, and you don't
   need exceptional speed, you can prepend a .PPM header in front
   and use pgNewBitmap(). There is information about this file
   format at:
   http://www-info2.informatik.uni-wuerzburg.de/mitarbeiter/wolfram/lehre/bildformate.html

 - If you need more speed but don't mind managing the potential
   complexity of translating the bitmap into other formats, you
   can use a shared memory segment. There is a short SHM demo in
   the apps directory, and a longer example in SDL's picogui video driver.

--Micah

On Tue, Mar 18, 2003 at 07:14:46PM +0300, [email protected] wrote:
> Hello everybody,
> 
> I would like to create bitmap from raw data. I think I have to use
> pgCreateBitmap function and then fill this bitmap. I have raw data
> (3 bytes per pixel as array). How I can do it?
> 
> -- 
> Best regards,
>  mic                          mailto:[email protected]
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Does your code think in ink? 
> You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
> What are you waiting for?
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> _______________________________________________
> Pgui-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pgui-devel

-- 
Only you can prevent creeping featurism!


-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.