How to capture a rotated image

BlitzMax Forums/BlitzMax Beginners Area/How to capture a rotated image

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You're welcome dude.

When looking into filtering all you really need to do is, say, draw it twice as big, then for every group of 2x2 pixels you add up their values on a per-component basis and divide the total by 4, then write out the pixel to a regular sized pixmap.

There are more advanced ways to do it also, like adding `weights` to each of the pixels in the block, especially if you had a 3x3 or 4x4 block to work with, and some methods even get into fancy things like gausian bell shaped weighting and stuff like that. Or if you want to look into bilinear type filtering you could interpolate the pixel color across the area between each source pixel.

Enjoy.