Ok. One more time :)
I want a TImage so I can scale it using the underlying hardware.
What I have now is a pixmap solution which works fine.
However, I can't scale it and ResizePixmap is too damn slow.
So to reiterate. I can't use ResizePixmap.
The format must be BGR888, since the main datasource is the windows GDI.
So I need to create a TImage once, and then lock an memcopy to it's internal pointer each frame. Unlock, scale and draw it.
Using LoadImage on the pixmap, does not work and seems quite complicated since I just need to lock it each frame.
Hope it's a bit clearer for everybody now :)
I want a TImage so I can scale it using the underlying hardware.
What I have now is a pixmap solution which works fine.
However, I can't scale it and ResizePixmap is too damn slow.
So to reiterate. I can't use ResizePixmap.
The format must be BGR888, since the main datasource is the windows GDI.
So I need to create a TImage once, and then lock an memcopy to it's internal pointer each frame. Unlock, scale and draw it.
Using LoadImage on the pixmap, does not work and seems quite complicated since I just need to lock it each frame.
Hope it's a bit clearer for everybody now :)