Forum Navigation
You need to log in to create posts and topics.

Re: Bit Blitting or Pixel Doubling?

Posted by: BMichael <BMichael@...>

>Does anyone know of a good Pixel Doubling (or as I understand it, "Bit
>Blittering") routine for FB?
>
>for example, something where I can draw into a 320x240 gworld and get a
>fast "doubling" or even better "interlaced"(every other line) or
>"interleaved" effect?

Unless you need a super-fast routine, simple "doubling" is provided by
CopyBits any time you pass a source rectangle half the size of the
destination rectangle... For speed, I've always made sure the rects were
the same size, but it's not necessary. See page 321 in the Handbook for
the parameters.

Bill