How can I change the scale mode for a canvas ?

BlitzPlus Forums/BlitzPlus Programming/How can I change the scale mode for a canvas ?

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.

It's not sensible to constantly re-allocate large chunks of memoery like this. Creating the maximum space you want a chunk of memoery to be able to take up, is standerd practice. It applies in exactly the same manner to a graphics buffer.

All that a canvas in the way you suggest would do, is constantly create new, copy bits from old to new, destroy old.

Although! a ResizeCanvas(canvas,w,h) that copies the existing data intao resized canvas.. would be good :)