This site is no longer active and is available for archival purposes only. Registration and login is disabled.

no wait - what about alpha blending + rotation


no wait - what about alpha blending + rotation

Postby newbie » Oct 13, 2004 @ 1:43am

newbie
 


Postby newbie » Oct 13, 2004 @ 3:47am

newbie
 


Postby newbie » Oct 13, 2004 @ 6:48pm

newbie
 


Postby newbie » Oct 13, 2004 @ 7:12pm

newbie
 


Postby Johan » Oct 13, 2004 @ 8:19pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby newbie » Oct 13, 2004 @ 8:54pm

newbie
 


Postby Johan » Oct 13, 2004 @ 9:31pm

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.
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Guest » Oct 13, 2004 @ 10:30pm

Guest
 


Postby Johan » Oct 14, 2004 @ 7:04am

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...
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Guest » Oct 14, 2004 @ 6:44pm

Guest
 


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron