PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Doing a fill blt

Is it possible to blt a surface to another one which hasn't same proportions, and to fill the destination one?

Let me explain with an example :

I have an image in a surface which is sized 100 X 200
I want to blt it to a surface that is 200 X 200 and I want the image to take all the new surface. So the image will be deformed : the width will be twice the original height.
I only found homothetic transformation in your documentation.
Hi,

Yes. The Blt operation will do exactly that. You can use either a specified rectangle on the source and destination surface, or you can set NULL as rectangle and the entire surface will be used. Blt automatically stretches the surface as necessary.

/Johan