Creating a bitmap file from an array of pixels

bridged with qdn.public.ddk.graphics
Post Reply
Brent Tweddle

Creating a bitmap file from an array of pixels

Post by Brent Tweddle » Thu Jan 15, 2004 2:40 pm

Hi,

I am trying to create a bitmap file on a disk from an array of pixels that
I have stored in memory. Does anyone have an idea of where to start on
this?

Most of the sites I have found most of the files I have found on the
bitmap file format tell you how to do things in VisualC, which is of no
use.

Thanks,
Brent

Robert Krten

Re: Creating a bitmap file from an array of pixels

Post by Robert Krten » Thu Jan 15, 2004 3:25 pm

Brent Tweddle <betweddl@engmail.uwaterloo.ca> wrote:
Hi,

I am trying to create a bitmap file on a disk from an array of pixels that
I have stored in memory. Does anyone have an idea of where to start on
this?

Most of the sites I have found most of the files I have found on the
bitmap file format tell you how to do things in VisualC, which is of no
use.
Go to:

http://www.parse.com/samples/manpages/fx.html

This is a utility that performs cross-fade and other effects; buried in
the code is something that writes a bitmap file to disk. It basically
uses the Photon PxWriteImage() to do the heavy lifting.

Cheers,
-RK

--
[If replying via email, you'll need to click on the URL that's emailed to you
afterwards to forward the email to me -- spam filters and all that]
Robert Krten, PDP minicomputer collector http://www.parse.com/~pdp8/

Brent Tweddle

Re: Creating a bitmap file from an array of pixels

Post by Brent Tweddle » Thu Jan 15, 2004 6:01 pm

Hi,

Is that call available for qnx 6.2?? I wasn't able to find it in photon.
If not is there something that replaces it?

Thanks,
Brent

Robert Krten wrote:
Brent Tweddle <betweddl@engmail.uwaterloo.ca> wrote:
Hi,

I am trying to create a bitmap file on a disk from an array of pixels that
I have stored in memory. Does anyone have an idea of where to start on
this?

Most of the sites I have found most of the files I have found on the
bitmap file format tell you how to do things in VisualC, which is of no
use.

Go to:

http://www.parse.com/samples/manpages/fx.html

This is a utility that performs cross-fade and other effects; buried in
the code is something that writes a bitmap file to disk. It basically
uses the Photon PxWriteImage() to do the heavy lifting.

Cheers,
-RK

--
[If replying via email, you'll need to click on the URL that's emailed to you
afterwards to forward the email to me -- spam filters and all that]
Robert Krten, PDP minicomputer collector http://www.parse.com/~pdp8/

Robert Krten

Re: Creating a bitmap file from an array of pixels

Post by Robert Krten » Thu Jan 15, 2004 9:14 pm

Brent Tweddle <betweddl@engmail.uwaterloo.ca> wrote:
Hi,

Is that call available for qnx 6.2?? I wasn't able to find it in photon.
If not is there something that replaces it?
It's undocumented :-) I believe it works for 6.2, as I use it in other utilities.

Cheers,
-RK

Thanks,
Brent

Robert Krten wrote:

Brent Tweddle <betweddl@engmail.uwaterloo.ca> wrote:
Hi,

I am trying to create a bitmap file on a disk from an array of pixels that
I have stored in memory. Does anyone have an idea of where to start on
this?

Most of the sites I have found most of the files I have found on the
bitmap file format tell you how to do things in VisualC, which is of no
use.

Go to:

http://www.parse.com/samples/manpages/fx.html

This is a utility that performs cross-fade and other effects; buried in
the code is something that writes a bitmap file to disk. It basically
uses the Photon PxWriteImage() to do the heavy lifting.

Cheers,
-RK

--
[If replying via email, you'll need to click on the URL that's emailed to you
afterwards to forward the email to me -- spam filters and all that]
Robert Krten, PDP minicomputer collector http://www.parse.com/~pdp8/


--
[If replying via email, you'll need to click on the URL that's emailed to you
afterwards to forward the email to me -- spam filters and all that]
Robert Krten, PDP minicomputer collector http://www.parse.com/~pdp8/

Post Reply

Return to “qdn.public.ddk.graphics”