Page 1 of 1

no wait - what about alpha blending + rotation

PostPosted: Oct 13, 2004 @ 1:43am
by newbie

PostPosted: Oct 13, 2004 @ 3:47am
by newbie

PostPosted: Oct 13, 2004 @ 6:48pm
by newbie

PostPosted: Oct 13, 2004 @ 7:12pm
by newbie

PostPosted: Oct 13, 2004 @ 8:19pm
by Johan

PostPosted: Oct 13, 2004 @ 8:54pm
by newbie

PostPosted: Oct 13, 2004 @ 9:31pm
by Johan
Resizing is simple. Just change the size of the source rectangle.

Try:
CRect srcrect(0, 0, srcsurface->GetWidth(), srcsurface->GetHeight());
destsurface->AlphaBlt(NULL, srcsurface, srcrect, ...);

If you make the source rectangle smaller, the result will be an "upsizing" during the blit.

PostPosted: Oct 13, 2004 @ 10:30pm
by Guest

PostPosted: Oct 14, 2004 @ 7:04am
by Johan
To downsize, simply adjust the _destination_ rectangle.

Rotation of CGapiRGBASurfaces is not implemented, but since you can get access to the raw surface buffer (GetBuffer) you can add it yourself if you want it...

PostPosted: Oct 14, 2004 @ 6:44pm
by Guest