Fast 2D blitting and frame buffering

A

Andrew Crowe

Hi guys,

I'm trying to create a 2D graphics engine by writing all the graphics to
a simple memory buffer (an array of 24 bit pixels) then blitting the
result to the screen display.

However I haven't been able to find any information on doing this (I'm
guessing there's a faster way to do it then plotting pixels using the
built in 2d graphics class).

Also what's the best datatype for the frame buffers (and the
tiles/sprites graphics) is it a byte array, or something else (like a
bitset?)



Any help much appreciated


Thanks

Andrew
 
T

Tim Tyler

Andrew Crowe said:
I'm trying to create a 2D graphics engine by writing all the graphics to
a simple memory buffer (an array of 24 bit pixels) then blitting the
result to the screen display.

However I haven't been able to find any information on doing this (I'm
guessing there's a faster way to do it then plotting pixels using the
built in 2d graphics class).

There's MemoryImageSource - for one thing.
 
K

Knute Johnson

Andrew said:
Hi guys,

I'm trying to create a 2D graphics engine by writing all the graphics to
a simple memory buffer (an array of 24 bit pixels) then blitting the
result to the screen display.

However I haven't been able to find any information on doing this (I'm
guessing there's a faster way to do it then plotting pixels using the
built in 2d graphics class).

Also what's the best datatype for the frame buffers (and the
tiles/sprites graphics) is it a byte array, or something else (like a
bitset?)



Any help much appreciated


Thanks

Andrew

Take a look at VolatileImage.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top