photoshop style zoom tool

Blitz3D Forums/Blitz3D Programming/photoshop style zoom tool

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.

The way I've done it in the past in 2D, is to not actually display the buffer you're drawing on, but read the pixels and draw a solid rect (same colour as pixel) for each one. The size of the rects can vary according to zoom level.

I guess this method might not be ideal if you have a large zoom window, and you're redrawing the entire screen every frame.